Removed unecessary check.
This commit is contained in:
parent
0210264552
commit
3541ab4aa1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue