Closed rmasp98 closed 3 years ago
Sorry for the late reply,
Can you check if this issues still is a thing in v1.0.0-beta-2
If so i'll see if i can add the code you suggested
We've now released v1.0.0 that is fundamentally different and should fix this issue.
This is a great project and I am really glad you guys are still supporting it and adding some really useful features. I was fiddling about with my app the recently and I noticed that a couple of functions don't seem to be working properly. Sorry if I have misunderstood anything but I am still fairly new to golang
Both the following functions are part of the view class in edit.go: EditGoToEndOfLine if already on the last line loops over MoveCursor until the cursor no longer changes. However, when it reaches the end of the view, it is the origin that changes not the cursor. Therefore, it does not actually go to the end of the line but the end of the view
EditGoToStartOfLine does much the same in that it sets cursor to zero but does nothing to the origin. This means that if origin is not zero, it will not go back to the start of the line
Steps to reproduce the behavior:
Origin should also be updated within these functions to go to the true start/end of line
I think simple solutions would be: