Fix paste in editor not deleting the selection.
This commit is contained in:
parent
0b085cbcf1
commit
f84bfe5e89
|
@ -1681,8 +1681,8 @@ void editor_type_cut(struct editor* editor)
|
||||||
|
|
||||||
void editor_type_paste(struct editor* editor)
|
void editor_type_paste(struct editor* editor)
|
||||||
{
|
{
|
||||||
if ( editor->cursor_row == editor->select_row &&
|
if ( !(editor->cursor_row == editor->select_row &&
|
||||||
editor->cursor_column == editor->select_column )
|
editor->cursor_column == editor->select_column) )
|
||||||
editor_type_delete_selection(editor);
|
editor_type_delete_selection(editor);
|
||||||
|
|
||||||
for ( size_t i = 0; editor->clipboard && editor->clipboard[i]; i++ )
|
for ( size_t i = 0; editor->clipboard && editor->clipboard[i]; i++ )
|
||||||
|
|
Loading…
Reference in New Issue