diff options
author | Markus Teich <markus.teich@stusta.mhn.de> | 2015-03-10 11:29:43 +0100 |
---|---|---|
committer | Christoph Lohmann <20h@r-36.net> | 2015-03-10 21:23:27 +0100 |
commit | 0728caee306423cd1dc139e000828329c9285ab7 (patch) | |
tree | 929363ea5b4ed0299ee781f5221714fcb6ac28b3 /tabbed.c | |
parent | c2ce9be47170115a7fa301cc6e93da63847fb860 (diff) |
fix bug in unmanage: check if lastsel is initialized
Signed-off-by: Christoph Lohmann <20h@r-36.net>
Diffstat (limited to 'tabbed.c')
-rw-r--r-- | tabbed.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1125,7 +1125,7 @@ unmanage(int c) { lastsel--; } - if(c == sel) { + if(c == sel && lastsel >= 0) { focus(lastsel); } else { if(sel > c) |