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

Keep window size in window position check #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KSR-Yasuda
Copy link

@KSR-Yasuda KSR-Yasuda commented May 10, 2023

On switching current window in window-focus mode,
it checks movable direction by trying wincmd {h,j,k,l}.

It switches current window, so, if the window size is smaller than &winwidth and &winheight,
the window is resized.

The setting &winwidth is 20 by default, so vertically small window is likely to be resized.

Procedure to Repro

  1. :set winwidth=20
  2. :below vsplit
  3. :wincmd | (Change the other window size smaller than &winwidth)
  4. Launch winresizer (Ctrl-q)
  5. Switch to window-focus mode (f)

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.

1 participant