Used routine to add cursors in order correctly.

This commit is contained in:
Adam Harrison
2021-06-18 17:33:55 -04:00
parent 6915d86d59
commit dfc57bd884
2 changed files with 2 additions and 4 deletions
+1 -3
View File
@@ -80,9 +80,7 @@ local function split_cursor(direction)
table.insert(new_cursors, { line1 + direction, col1 })
end
end
for i,v in ipairs(new_cursors) do
doc():set_selections(#doc().selections/4 + 1, v[1], v[2])
end
for i,v in ipairs(new_cursors) do doc():add_selection(v[1], v[2]) end
end
local commands = {