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

Minor bug fixes #504

Merged
merged 2 commits into from
May 25, 2022
Merged

Minor bug fixes #504

merged 2 commits into from
May 25, 2022

Conversation

citizenmatt
Copy link
Member

This PR fixes a couple of tiny bugs:

  • VIM-2622 If 'shell' contains powershell on Windows, then 'shellcmdflags' will default to -Command
  • Fix incorrect animation when scrolling one line, e.g. with j. If the caret was inside 'sidescrolloff' columns of the left of the screen, then IdeaVim would try to put the caret column in the middle of the screen, asking the scrolling system to scroll to a negative horizontal offset. This was capped at 0, but the animation system would include the negative value in its calculation of distance scrolled. This puts the distance over a threshold and the scroll is animated. If the caret is in any column greater than 'sidescrolloff' then it is not animated.

If caret is less than 'sidescrolloff' columns from the left of the screen, moving down one line will animate. Greater than 'sidescrolloff' does not animate. This is because the scroll model tries to scroll to a negative horizontal offset, to try and put the caret in the middle of the screen. This isn't possible, but the scroll model sees a large enough distance to trigger an animation.
@AlexPl292 AlexPl292 merged commit d7c4e4a into JetBrains:master May 25, 2022
@AlexPl292
Copy link
Member

Merged, Thank you!

@citizenmatt citizenmatt deleted the mte-bugfix branch May 26, 2022 21:11
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