diff options
-rw-r--r-- | dmenu.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 | } |