fix bug in unmanage: check if lastsel is initialized

Signed-off-by: Christoph Lohmann <20h@r-36.net>
This commit is contained in:
Markus Teich 2015-03-10 11:29:43 +01:00 committed by Christoph Lohmann
parent c2ce9be471
commit 0728caee30

View file

@ -1125,7 +1125,7 @@ unmanage(int c) {
lastsel--;
}
if(c == sel) {
if(c == sel && lastsel >= 0) {
focus(lastsel);
} else {
if(sel > c)