fix bug in unmanage: check if lastsel is initialized Signed-off-by: Christoph Lohmann <20h@r-36.net>
1 files changed, 1 insertions(+), 1 deletions(-) M tabbed.c
M tabbed.c => tabbed.c +1 -1
@@ 1125,7 1125,7 @@ unmanage(int c) { lastsel--; } - if(c == sel) { + if(c == sel && lastsel >= 0) { focus(lastsel); } else { if(sel > c)