-
-
Notifications
You must be signed in to change notification settings - Fork 853
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: check if tabline is present when calculating certain layouts #1027
fix: check if tabline is present when calculating certain layouts #1027
Conversation
- also tweaks height calculation for `center` strategy
- will reimplement something similar in another PR for a few of the strategies
I've removed the tweak for the |
I've found a problem with the vertical strategy, and some other refactoring to do. |
Are you still working on this? Otherwise LGTM (you dont need to do it. I shouldn't be that nitpicky) |
- also tweaked `vertical` calculations so that no `nil` check is required
@Conni2461 I have factored out the function you suggested (good spot!), also considered factoring out the "shift down a line if have a tabline", but thought it would be more trouble than it was worth. I'm happy with this now, but if you could have a last look over before merging, that would be great 😊 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks :)
you can ship it if its done. I felt the same about the second refactoring. I also thought it would complicate things.
horizontal
,vertical
andcenter
strategies (also inherited byflex
)Tweaks height calculation forcenter
strategyCloses #995