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:
@@ -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
|
||||
| (_, _) =>
|
||||
|
||||
Reference in New Issue
Block a user