From f84bfe5e897322d64b70fa9c23f75f0d20c609d3 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Sun, 14 Sep 2014 23:03:32 +0200 Subject: [PATCH] Fix paste in editor not deleting the selection. --- utils/editor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/editor.cpp b/utils/editor.cpp index 6a4c566a..2fe80ede 100644 --- a/utils/editor.cpp +++ b/utils/editor.cpp @@ -1681,8 +1681,8 @@ void editor_type_cut(struct editor* editor) void editor_type_paste(struct editor* editor) { - if ( editor->cursor_row == editor->select_row && - editor->cursor_column == editor->select_column ) + if ( !(editor->cursor_row == editor->select_row && + editor->cursor_column == editor->select_column) ) editor_type_delete_selection(editor); for ( size_t i = 0; editor->clipboard && editor->clipboard[i]; i++ )