Fixed multilne cursors at the edges of docuemnts.
This commit is contained in:
parent
0b2bf227a8
commit
8e9c410d27
|
@ -73,7 +73,7 @@ end
|
||||||
local function split_cursor(direction)
|
local function split_cursor(direction)
|
||||||
local new_cursors = {}
|
local new_cursors = {}
|
||||||
for _, line1, col1 in doc():get_selections() do
|
for _, line1, col1 in doc():get_selections() do
|
||||||
if line1 > 1 and line1 < #doc().lines then
|
if line1 + direction >= 1 and line1 + direction <= #doc().lines then
|
||||||
table.insert(new_cursors, { line1 + direction, col1 })
|
table.insert(new_cursors, { line1 + direction, col1 })
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue