fixed: indentation block when selecting with F3

Signed-off-by: Ilia Maslakov <il.smind@google.com>
This commit is contained in:
Ilia Maslakov 2009-10-20 06:37:55 +00:00 committed by Ilia Maslakov
parent 6cb3400f1b
commit 6717960d5b

View File

@ -2867,6 +2867,8 @@ edit_execute_cmd (WEdit *edit, int command, int char_for_insertion)
case CK_Tab: case CK_Tab:
/* if text marked shift block */ /* if text marked shift block */
if ( edit->mark1 != edit->mark2 && !option_persistent_selections ) { if ( edit->mark1 != edit->mark2 && !option_persistent_selections ) {
if (edit->mark2 < 0)
edit_mark_cmd (edit, 0);
edit_move_block_to_right (edit); edit_move_block_to_right (edit);
} else { } else {
if ( option_cursor_beyond_eol ) if ( option_cursor_beyond_eol )