Sanitize selections after redo

This commit is contained in:
Guldoman
2021-10-02 22:03:52 +02:00
parent 3589031579
commit db3643653e
+2 -1
View File
@@ -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")