Merge pull request #575 from Guldoman/sanitize_selection_redo
Sanitize selections after redo
This commit is contained in:
commit
9fb166d3cc
|
@ -301,7 +301,8 @@ local function pop_undo(self, undo_stack, redo_stack, modified)
|
|||
local line1, col1, line2, col2 = table.unpack(cmd)
|
||||
self:raw_remove(line1, col1, line2, col2, redo_stack, cmd.time)
|
||||
elseif cmd.type == "selection" then
|
||||
self.selections = { unpack(cmd) }
|
||||
self.selections = { table.unpack(cmd) }
|
||||
self:sanitize_selection()
|
||||
end
|
||||
|
||||
modified = modified or (cmd.type ~= "selection")
|
||||
|
|
Loading…
Reference in New Issue