Merge pull request #1002 from zesterer/master
Made moving to a line beyond the end of a document move the caret column to the end of the line
This commit is contained in:
commit
a71bc8af35
|
@ -29,6 +29,9 @@ DocView.translate = {
|
|||
end,
|
||||
|
||||
["next_page"] = function(doc, line, col, dv)
|
||||
if line == #doc.lines then
|
||||
return #doc.lines, #doc.lines[line]
|
||||
end
|
||||
local min, max = dv:get_visible_line_range()
|
||||
return line + (max - min), 1
|
||||
end,
|
||||
|
|
Loading…
Reference in New Issue