Support guioptions 'k' flag in MacVim, prevents unnecessary window re… by ychin · Pull Request #708 · macvim-dev/macvim

@ychin

…size

Adds support for native GVim's 'k' flag. Adding/removing tabs/scrollbars
and setting 'linespace'/'columnspace' would now cause the number of
lines and columns in the buffer change to keep the window size constant,
instead of the other way round of resizing the window to keep the view
size constant. This helps prevent the window from resizing itself
unncessarily, which could be especially annoying when the window is
pinned/maximized.

Manually setting 'lines'/'columns', going to full screen, dragging the
window corner to resize would still resize the window.

Also removed misc calls within MMWindowController.m that were setting
shouldResizeVimView. Those calls were already handled by native Vim's
gui.c's gui_set_shellsize so it's redundant.

Close macvim-dev#617

@ychin ychin deleted the guioptions-k branch

July 9, 2018 06:28

splhack added a commit that referenced this pull request

Aug 3, 2018
Binary targets macOS 10.8+

- Vim patch 8.1.0235
- Touch Bar support #715
- Force click support #716
- New guioption 'k' #708
- Fix CoreText renderer

Script interfaces have compatibility with these versions

- Lua 5.3
- Perl 5.18
- Python2 2.7
- Python3 3.7
- Ruby 2.5

@ychin ychin mentioned this pull request

Aug 10, 2018

@ychin ychin mentioned this pull request

Aug 12, 2018