prompt-toolkit / pyvim

Pure Python Vim clone.
BSD 3-Clause "New" or "Revised" License
2.53k stars 163 forks source link

Multiple line append at end of line #108

Open davidbrochart opened 6 years ago

davidbrochart commented 6 years ago

When going to the end of a line ($), then Ctrl-v and select several lines (j), then Shift-a to append, the text is inserted at the position corresponding to the end of the first line instead of being inserted at the end of every line.

davidbrochart commented 6 years ago

I realize it was already the case before prompt-toolkit 2.0.

jonathanslenders commented 6 years ago

Good point! I noticed that if you press $ and then move up/down, the cursor also remains at the end of the lines. There are many operations where this $ takes effect that we have to support.

BTW: if you find other bugs related to text objects or cursor movement; you can report the issues in the prompt_toolkit repository.

davidbrochart commented 6 years ago

That's tricky though because you will have to differentiate between being at the last character of a line and being at the end of a line, which shows the same cursor position on the screen...