Skip to content

Commit

Permalink
Ticket #2660 (mcedit: reset selection after paste)
Browse files Browse the repository at this point in the history
    mcedit reset selection after the text pasted (only in non-persistent selection mode)

Signed-off-by: Ilia Maslakov <[email protected]>
  • Loading branch information
ilia-maslakov committed Sep 25, 2012
1 parent ee12f0c commit e6111f1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/editor/edit.c
Original file line number Diff line number Diff line change
Expand Up @@ -4069,6 +4069,13 @@ edit_execute_cmd (WEdit * edit, unsigned long command, int char_for_insertion)
if (option_cursor_beyond_eol && edit->over_col > 0)
edit_insert_over (edit);
edit_paste_from_X_buf_cmd (edit);
if (!option_persistent_selections && edit->mark2 >= 0)
{
if (edit->column_highlight)
edit_push_undo_action (edit, COLUMN_ON);
edit->column_highlight = 0;
edit_mark_cmd (edit, TRUE);
}
break;
case CK_History:
edit_paste_from_history (edit);
Expand Down

0 comments on commit e6111f1

Please sign in to comment.