Skip to content
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

fix: incorrect cursor movement when splitkeep=topline #155

Closed
wants to merge 2 commits into from

Conversation

willothy
Copy link
Collaborator

When splitkeep=topline, resizing windows while moving between them can cause the cursor to jump / end up in the wrong position. vim.schedule-ing the resize functions seems to fix this for me.

Also removed the use of nvim_win_get_option.

@willothy willothy marked this pull request as draft May 22, 2024 21:13
@willothy
Copy link
Collaborator Author

Hmm nevermind, this did not fix it. Would recommend just using splitkeep=cursor for now.

I'll keep looking into this though.

@willothy willothy closed this May 22, 2024
@willothy
Copy link
Collaborator Author

Also see this issue upstream for more detail, it seems related:

neovim/neovim#23888

@cryptomilk
Copy link
Collaborator

Should we document splitkeep = cursor in our README?

@willothy
Copy link
Collaborator Author

Yeah that might be a good idea, at least until there's a fix.

@willothy
Copy link
Collaborator Author

Thanks for the collaborator invite @cryptomilk! Btw I noticed that we already have a notice in the readme about splitkeep, it just doesn't mention cursor specifically. Is that enough, or should we update it to be more specific do you think?

@cryptomilk
Copy link
Collaborator

I think we should mention the cursor :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants