Sanitize selections after redo
This commit is contained in:
parent
3589031579
commit
db3643653e
|
@ -301,7 +301,8 @@ local function pop_undo(self, undo_stack, redo_stack, modified)
|
||||||
local line1, col1, line2, col2 = table.unpack(cmd)
|
local line1, col1, line2, col2 = table.unpack(cmd)
|
||||||
self:raw_remove(line1, col1, line2, col2, redo_stack, cmd.time)
|
self:raw_remove(line1, col1, line2, col2, redo_stack, cmd.time)
|
||||||
elseif cmd.type == "selection" then
|
elseif cmd.type == "selection" then
|
||||||
self.selections = { unpack(cmd) }
|
self.selections = { table.unpack(cmd) }
|
||||||
|
self:sanitize_selection()
|
||||||
end
|
end
|
||||||
|
|
||||||
modified = modified or (cmd.type ~= "selection")
|
modified = modified or (cmd.type ~= "selection")
|
||||||
|
|
Loading…
Reference in New Issue