diff options
| -rw-r--r-- | tabbed.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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--; } |