Changed behaviour of home.

This commit is contained in:
Adam Harrison
2021-08-06 18:08:08 -04:00
parent 0b2bf227a8
commit 2bf56e67c5
4 changed files with 7 additions and 2 deletions
+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