Changed behaviour of home.

This commit is contained in:
Adam Harrison committed 2021-08-06 18:08:08 -04:00
1 parent 0b2bf227a8
commit 2bf56e67c5
4 files changed
+7 -2

No files matched your search

+4
View File
@@ -117,6 +117,10 @@ function translate.start_of_line(doc, line, col)
return line, 1
end
function translate.start_of_indentation(doc, line, col)
local s, e = doc.lines[line]:find("^%s*")
return line, col > e + 1 and e + 1 or 1
end
function translate.end_of_line(doc, line, col)
return line, math.huge