Removed unecessary check.

This commit is contained in:
Adam Harrison 2021-06-11 19:01:43 -04:00
parent 0210264552
commit 3541ab4aa1
1 changed files with 1 additions and 8 deletions

View File

@ -69,14 +69,7 @@ end
local function split_cursor(direction)
local new_cursors = {}
for _, line1, col1 in doc():get_selections() do
local exists = false
for _, line2, col2 in doc():get_selections() do
if line1+direction == line2 and col1 == col2 then
exists = true
break
end
end
if not exists and line1 > 1 and line1 < #doc().lines then
if line1 > 1 and line1 < #doc().lines then
table.insert(new_cursors, { line1 + direction, col1 })
end
end