Applied PR390

This commit is contained in:
George Sokianos 2022-01-07 11:19:15 +00:00
parent ce62b9c8da
commit 79f0ac4f80
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ end
local function split_cursor(direction)
local new_cursors = {}
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 })
end
end