1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

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

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