copilot.lua icon indicating copy to clipboard operation
copilot.lua copied to clipboard

Cursor position problems in nvim 0.10

Open bhataktaBhai opened this issue 2 years ago • 2 comments

After commit #7304708, when accepting a multi-line suggestion, the cursor moves several lines down into pre-existing text.

Screenshot 2023-11-26 at 11 26 50 AM Screenshot 2023-11-26 at 11 26 25 AM

It's as if instead of the cursor moving down 4 lines after inserting the text, it moves 4 lines before inserting. The cursor symbol is 4 lines further still, but that is only graphical.

bhataktaBhai avatar Nov 26 '23 06:11 bhataktaBhai

Are you using latest 0.10 nightly?

MunifTanjim avatar Nov 27 '23 07:11 MunifTanjim

As of 0.11 nightly the cursor appears to remain at the original position when you would expect it to jump to end of inserted input.

ditsuke avatar Jul 19 '24 06:07 ditsuke