aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConnor Lane Smith <cls@lubutu.com>2010-06-22 10:45:07 +0100
committerConnor Lane Smith <cls@lubutu.com>2010-06-22 10:45:07 +0100
commitbff1526d31faaf289804174f6477d61736e82443 (patch)
tree68bbd88909306d6af3b2b5180c344bf443bf67f8
parent9a33a72c6afd9042c8395f4318bf5d21e235694d (diff)
fixed vlist cursor
-rw-r--r--dmenu.c2
1 files changed, 1 insertions, 1 deletions
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) {
472 calcoffsets(); 472 calcoffsets();
473 break; 473 break;
474 case XK_Left: 474 case XK_Left:
475 if(cursor > 0 && (!sel || !sel->left)) { 475 if(cursor > 0 && (!sel || !sel->left || lines > 0)) {
476 while(cursor-- > 0 && !IS_UTF8_1ST_CHAR(text[cursor])); 476 while(cursor-- > 0 && !IS_UTF8_1ST_CHAR(text[cursor]));
477 break; 477 break;
478 } 478 }