1
0

fixed vlist cursor

This commit is contained in:
Connor Lane Smith 2010-06-22 10:45:07 +01:00
parent 23e4e1a5a1
commit 2dca58cb5b

View File

@ -472,7 +472,7 @@ kpress(XKeyEvent * e) {
calcoffsets(); calcoffsets();
break; break;
case XK_Left: 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])); while(cursor-- > 0 && !IS_UTF8_1ST_CHAR(text[cursor]));
break; break;
} }