Skip to content

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

Merged
lervag merged 2 commits intolervag:masterfrom
PatrBal:master
Oct 30, 2022
Merged

Improvement of the calculation of the usable width of current window fixes #2545#2551
lervag merged 2 commits intolervag:masterfrom
PatrBal:master

Conversation

@PatrBal
Copy link
Copy Markdown
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
Copy Markdown
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