Ticket #1998 (EditColumnMark can't go up through newline)

fixed trouble with vertical selection

more detail description:

In block selection mode (shift-F3) it's impossible to go beyond empty line with
up or left arrow (i.e. in top direction).
In general: it's impossible to pass any line shorter than finishing column,
until left arrow is pressed at column 0 (which won't work on empty line), e.g.

xxxCxxx
yyyyy
zzzzzDz

- put cursor in C position,
- press shift-F3,
- go to D position,
- press up arrow twice,
- press left arrow - you're unlocked now and free to go up.

Signed-off-by: Ilia Maslakov <il.smind@gmail.com>
This commit is contained in:
Ilia Maslakov 2010-02-06 17:37:13 +03:00
parent fdddd8c78d
commit b0236c3e10

View File

@ -2118,6 +2118,7 @@ static void edit_left_char_move_cmd (WEdit * edit)
{
int cw = 1;
if (column_highlighting
&& option_cursor_beyond_eol
&& edit->mark1 != edit->mark2
&& edit->over_col == 0
&& edit->curs1 == edit_bol(edit, edit->curs1))