-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vim.current.buffer.append() has inconsistent behavior with vim #8690
Comments
I guess they are related. I mentioned multiple windows because that's how I spotted the issue and didn't try just a single window. |
This looks deliberate. Code is here. Doesn't seem unreasonable to me that in the given test case neovim should prefer to preserve the position of the cursor on the original line of text, rather than on the original line number. |
Having said that, this code is only imperfectly achieving that aim. Eg consider:
which results in the cursor moving from line 2 to line 1, though you'd think that it could have stayed where it was. (This example is, I think, consistent with vim). |
@dimbleby Your example is not the same as mine. |
@Yggdroot - of course! It was a second example. Apparently I was unclear, so I'll try again:
Make sense? |
The inconsistency does not mean wrong. But we should think about that should neovim deviate from vim at this point? |
Fixed by #9674. |
nvim --version
:$TERM
:Steps to reproduce using
nvim -u NORC
Actual behaviour
output is: 1, 2
Expected behaviour
vim's output is 1,1
The text was updated successfully, but these errors were encountered: