commit 0214014fbedb905b5d09e2916e831d47f534d992
Author: Gregor Best <[email protected]>
Date:   Tue Jan 21 19:18:00 2014 +0100

    Fix crash on client termination
    
    Signed-off-by: Gregor Best <[email protected]>
    Signed-off-by: Christoph Lohmann <[email protected]>

diff --git a/tabbed.c b/tabbed.c
index 9405644..d30206b 100644
--- a/tabbed.c
+++ b/tabbed.c
@@ -1094,6 +1094,7 @@ unmanage(int c) {
                } else if(lastsel > c) {
                        lastsel--;
                }
+               lastsel = MIN(lastsel, nclients - 1);
 
                if(c == sel) {
                        /* Note that focus() will never set lastsel == sel,


Reply via email to