Skip to content

Fix scrollbar to update properly when switching Vim windows #827

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

Merged
merged 1 commit into from
Dec 27, 2018

Conversation

ychin
Copy link
Member

@ychin ychin commented Dec 27, 2018

Previously, showing/hiding scrollbars didn't call placeScrollbars which was why sometimes when certain Vim commands that would show/hide Vim scrollbars get called, the scrollbar positions/sizes were not updated properly, leaving them with the wrong size.

Fix this by adding a new pending flag so placeScrollbars only gets called once per update, and make sure showing/hiding scrollbars call it.

Fix #802

Previously, showing/hiding scrollbars didn't call placeScrollbars which
was why sometimes when certain Vim commands that would show/hide Vim
scrollbars get called, the scrollbar positions/sizes were not updated
properly, leaving them with the wrong size.

Fix this by adding a new pending flag so placeScrollbars only gets
called once per update, and make sure showing/hiding scrollbars call it.

Fix macvim-dev#802
@ychin ychin merged commit ff5cec6 into macvim-dev:master Dec 27, 2018
@ychin ychin deleted the scrollbar_update_fixes branch December 27, 2018 02:53
ychin added a commit to ychin/macvim that referenced this pull request Feb 4, 2019
Vim patch 8.1.873

Targets macOS 10.8+

General:

- MacVim binary is now signed by a Developer ID (macvim-dev#517). This makes it
  easier to download and run the app without security warnings.
    - This also fixes an issue where invoking external programs via
      `:!open` was slow in Mojave. macvim-dev#763
- Ruby version has been updated from 2.5 to 2.6.

Fixes:

- Scrollbars are no longer misplaced when resizing window macvim-dev#827
- Fix rendering performance issues for commands (e.g. `:version`,
  `:echo`, or `:!`) that echo text in Mojave macvim-dev#840
- MacVim now properly asks for permission to use AppleEvent (ODB Editor
  Suite requires that to work) macvim-dev#822
- Fix borderless window mode in pre-Mojave versions macvim-dev#828

Script interfaces have compatibility with these versions:

- Lua 5.3
- Perl 5.18
- Python2 2.7
- Python3 3.7
- Ruby 2.6
@ychin ychin added the UI Issues related to UI elements, tabs, scrollbars, window resizing, etc. label Dec 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
UI Issues related to UI elements, tabs, scrollbars, window resizing, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

scroll bar misplace when exchange vertical window
1 participant