From bff1526d31faaf289804174f6477d61736e82443 Mon Sep 17 00:00:00 2001 From: Connor Lane Smith Date: Tue, 22 Jun 2010 10:45:07 +0100 Subject: fixed vlist cursor --- dmenu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dmenu.c b/dmenu.c index 15ce8c7..b89c0da 100644 --- a/dmenu.c +++ b/dmenu.c @@ -472,7 +472,7 @@ kpress(XKeyEvent * e) { calcoffsets(); break; case XK_Left: - if(cursor > 0 && (!sel || !sel->left)) { + if(cursor > 0 && (!sel || !sel->left || lines > 0)) { while(cursor-- > 0 && !IS_UTF8_1ST_CHAR(text[cursor])); break; } -- cgit v1.2.3-13-gbd6f