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

Fix "'winheight' cannot be smaller than 'minwinheight'" #28

Closed
wants to merge 2 commits into from
Closed

Fix "'winheight' cannot be smaller than 'minwinheight'" #28

wants to merge 2 commits into from

Conversation

boatrite
Copy link

Fixes #4.

I attempted to write a good commit message. Let me know if I should change anything.

More importantly, is this a suitable fix? My (limited) testing showed this working without issues, but for all I know there could be instances where doing the filter wouldn't be a good idea. Thoughts?

Zach Boatrite added 2 commits October 25, 2017 10:21
#4

When the following lines used for auto-resizing horizonal splits
are in a user's .vimrc

    set winheight=5
    set winminheight=5
    set winheight=999

the above error happens because "set winheight=1 winwidth=1" appears
in the Session.vim file for each window and thus tries to set winheight
smaller than winminheight.

This commit removes all instances of "set winheight=1 winwidth=1"
from the Session.vim file so winheight is no longer set smaller
than winminheight.
@boatrite
Copy link
Author

boatrite commented Mar 6, 2018

My solution seems to have stopped working at some point, so I'm going to close this PR.

As of now I'm using the solution outlined here.

@boatrite boatrite closed this Mar 6, 2018
@boatrite boatrite deleted the zb-fix-winheight-error branch March 6, 2018 15:34
@boatrite boatrite restored the zb-fix-winheight-error branch March 6, 2018 15:38
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.

winheight cannot be smaller than winminheight
1 participant