aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Teich <markus.teich@stusta.mhn.de>2015-03-10 11:29:43 +0100
committerChristoph Lohmann <20h@r-36.net>2015-03-10 21:23:27 +0100
commit0728caee306423cd1dc139e000828329c9285ab7 (patch)
tree929363ea5b4ed0299ee781f5221714fcb6ac28b3
parentc2ce9be47170115a7fa301cc6e93da63847fb860 (diff)
fix bug in unmanage: check if lastsel is initialized
Signed-off-by: Christoph Lohmann <20h@r-36.net>
-rw-r--r--tabbed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tabbed.c b/tabbed.c
index d24b299..b15f9cb 100644
--- 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)