1 files changed, 2 insertions(+), 2 deletions(-)
M tabbed.c
M tabbed.c => tabbed.c +2 -2
@@ 1089,8 1089,8 @@ unmanage(int c) {
spawn(NULL);
}
} else {
- if(c == lastsel) {
- lastsel = -1;
+ if(c && lastsel >= nclients) {
+ lastsel = nclients - 1;
} else if(lastsel > c) {
lastsel--;
}