Fix paste in editor not deleting the selection.

This commit is contained in:
Jonas 'Sortie' Termansen 2014-09-14 23:03:32 +02:00
parent 0b085cbcf1
commit f84bfe5e89
1 changed files with 2 additions and 2 deletions

View File

@ -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++ )