fix bug in unmanage: check if lastsel is initialized - tabbed - tab interface for application supporting Xembed
HTML git clone git://git.suckless.org/tabbed
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 0728caee306423cd1dc139e000828329c9285ab7
DIR parent c2ce9be47170115a7fa301cc6e93da63847fb860
HTML Author: Markus Teich <markus.teich@stusta.mhn.de>
Date: Tue, 10 Mar 2015 11:29:43 +0100
fix bug in unmanage: check if lastsel is initialized
Signed-off-by: Christoph Lohmann <20h@r-36.net>
Diffstat:
M tabbed.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/tabbed.c b/tabbed.c
@@ -1125,7 +1125,7 @@ unmanage(int c) {
lastsel--;
}
- if(c == sel) {
+ if(c == sel && lastsel >= 0) {
focus(lastsel);
} else {
if(sel > c)