[hackers] [dmenu] fixed vlist cursor || Connor Lane Smith

From: <hg_AT_suckless.org>
Date: Tue, 22 Jun 2010 09:45:47 +0000 (UTC)

changeset: 313:88c7cd37b4ab
tag: tip
user: Connor Lane Smith <cls_AT_lubutu.com>
date: Tue Jun 22 10:45:07 2010 +0100
files: dmenu.c
description:
fixed vlist cursor

diff -r 2fe12779814a -r 88c7cd37b4ab dmenu.c
--- a/dmenu.c Sun Jun 20 15:04:15 2010 +0100
+++ b/dmenu.c Tue Jun 22 10:45:07 2010 +0100
@@ -472,7 +472,7 @@
                 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;
                 }
Received on Tue Jun 22 2010 - 09:45:47 UTC

This archive was generated by hypermail 2.2.0 : Tue Jun 22 2010 - 09:48:04 UTC