[hackers] [tabbed] fix bug in unmanage: check if lastsel is initialized || Markus Teich

From: <git_AT_suckless.org>
Date: Tue, 10 Mar 2015 22:20:18 +0100 (CET)

commit 0728caee306423cd1dc139e000828329c9285ab7
Author: Markus Teich <markus.teich_AT_stusta.mhn.de>
Date: Tue Mar 10 11:29:43 2015 +0100

    fix bug in unmanage: check if lastsel is initialized
    
    Signed-off-by: Christoph Lohmann <20h_AT_r-36.net>

diff --git a/tabbed.c b/tabbed.c
index d24b299..b15f9cb 100644
--- a/tabbed.c
+++ b/tabbed.c
_AT_@ -1125,7 +1125,7 @@ unmanage(int c) {
                         lastsel--;
                 }
 
- if(c == sel) {
+ if(c == sel && lastsel >= 0) {
                         focus(lastsel);
                 } else {
                         if(sel > c)
Received on Tue Mar 10 2015 - 22:20:18 CET

This archive was generated by hypermail 2.3.0 : Tue Mar 10 2015 - 22:24:15 CET