Ticket #1599 (navigation with Ctrl+arrows besides EOL)

fix: navigation with Ctrl+arrows besides EOL
    fix: kill word left/right when cursor besides EOL

Signed-off-by: Ilia Maslakov <il.smind@google.com>
This commit is contained in:
Ilia Maslakov 2009-09-22 17:45:21 +00:00 committed by Ilia Maslakov
parent 7134bd49d2
commit 559f161ebc

View File

@ -2718,9 +2718,13 @@ edit_execute_cmd (WEdit *edit, int command, int char_for_insertion)
edit_delete (edit, 0);
break;
case CK_Delete_Word_Left:
edit->over_col = 0;
edit_left_delete_word (edit);
break;
case CK_Delete_Word_Right:
if ( option_cursor_beyond_eol && edit->over_col > 0 )
edit_insert_over (edit);
edit_right_delete_word (edit);
break;
case CK_Delete_Line:
@ -2801,10 +2805,12 @@ edit_execute_cmd (WEdit *edit, int command, int char_for_insertion)
break;
case CK_Word_Left:
case CK_Word_Left_Highlight:
edit->over_col = 0;
edit_left_word_move_cmd (edit);
break;
case CK_Word_Right:
case CK_Word_Right_Highlight:
edit->over_col = 0;
edit_right_word_move_cmd (edit);
break;
case CK_Up_Alt_Highlight: