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

Improvement of the calculation of the usable width of current window fixes #2545 #2551

Merged
merged 2 commits into from
Oct 30, 2022
Merged

Conversation

PatrBal
Copy link
Contributor

@PatrBal PatrBal commented Oct 30, 2022

I believe that this pull request provides a fix for issue #2545. It is strongly based on https://stackoverflow.com/questions/26315925/get-usable-window-width-in-vim-script.

lervag added a commit that referenced this pull request Oct 30, 2022
lervag added a commit that referenced this pull request Oct 30, 2022
@lervag lervag merged commit 4f107d5 into lervag:master Oct 30, 2022
@lervag
Copy link
Owner

lervag commented Oct 30, 2022

Thanks! I refactored the code into a separate function and I made some simplifications. I believe it should still be accurate, although I updated the logic of the auto case somewhat.

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.

2 participants