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 zz updating desired column #4424
Fix zz updating desired column #4424
Conversation
Thanks @schu34, going with this less disruptive approach is probably better, even if there's some subtle existing misbehavior we haven't caught. |
What about other commands which move the view, but (generally) not the cursor? For instance, |
Yeah sure, wasn't aware of all those but easy enough to add. Is there a list of commands that move the view but not the cursor that I could reference? |
Not that I know of. Maybe |
did some testing in neovim. It seems that all the |
I think that behavior is dependent on |
Yeah, you're right about |
Thanks for pointing that out, I just created #4428. Yeah, if you could make |
Alright updated that and also removed it from |
I think you missed |
Thanks again! I'll merge once the tests are confirmed to be green |
What this PR does / why we need it:
basically the same as #4298. That PR was causing a bunch of difficult to debug issues since it updated the default behaviour for all actions. This PR takes mostly the same approach, except it defaults
doesntChangeDesiredColumn
tofalse
and just sets it totrue
forzz
. There are probably other actions that updatedesiredColumn
when they shouldn't, and this PR won't address those, but at least now there's an easy route to address those bugs as they're noticed. (just adddoesntChangeDesiredColumn = true
)I also added a bunch of unit tests that I wrote while trying to debug the last PR.
Which issue(s) this PR fixes
#4296
Special notes for your reviewer: