about summary refs log tree commit diff stats
diff options
context:
space:
mode:
author2015-03-10 11:29:43 +0100
committer2015-03-10 21:23:27 +0100
commit0728caee306423cd1dc139e000828329c9285ab7 (patch)
tree929363ea5b4ed0299ee781f5221714fcb6ac28b3
parentc2ce9be47170115a7fa301cc6e93da63847fb860 (diff)
downloadtabbed-0728caee306423cd1dc139e000828329c9285ab7.tar.gz
-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)