commit 0728caee306423cd1dc139e000828329c9285ab7 Author: Markus Teich <[email protected]> Date: Tue Mar 10 11:29:43 2015 +0100
fix bug in unmanage: check if lastsel is initialized
Signed-off-by: Christoph Lohmann <[email protected]>
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)
