amend motion to move to a line: if the requested line has a linebreak as the next character after it, stay at the current position, or else add 1 to the linebreak's idx so that we go to the first character of the line

This commit is contained in:
2025-09-19 04:03:54 +01:00
parent d871ac451f
commit b6244d4962
2 changed files with 11 additions and 2 deletions

View File

@@ -1044,7 +1044,7 @@ struct
* increment by 1 as we want to go to first char after line break *)
bufferIdx + lineIdx
else
bufferIdx + lineIdx + 1
bufferIdx + lineIdx
end
end
| (_, _) =>