aboutsummaryrefslogtreecommitdiff
path: root/dmenu.c
diff options
context:
space:
mode:
Diffstat (limited to 'dmenu.c')
-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) {
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;
}