Fix selection undo... for real

This commit is contained in:
Tomasz Chabora 2019-06-17 03:54:28 +02:00
parent cd22551d2d
commit e5cfb9d6b2
1 changed files with 1 additions and 1 deletions

View File

@ -5613,7 +5613,7 @@ void TextEdit::undo() {
TextOperation op = undo_stack_pos->get();
_do_text_op(op, true);
if (op.from_line != op.to_line || op.to_column != op.from_column + 1)
if (op.type != TextOperation::TYPE_INSERT && (op.from_line != op.to_line || op.to_column != op.from_column + 1))
select(op.from_line, op.from_column, op.to_line, op.to_column);
current_op.version = op.prev_version;