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:
parent
0b085cbcf1
commit
f84bfe5e89
1 changed files with 2 additions and 2 deletions
|
@ -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++ )
|
||||
|
|
Loading…
Reference in a new issue