diff options
author | luukvbaal <31730729+luukvbaal@users.noreply.github.com> | 2023-02-02 10:35:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-02 09:35:51 +0000 |
commit | 64fa75a86a9e2e301e884e21911d71688fc8f122 (patch) | |
tree | cd9286f4df6659bc4432403b285e46ad9bdfcd00 /test/functional/vimscript/eval_spec.lua | |
parent | 2c5906b55bb6092121f4d3b032d5449da7675c2b (diff) | |
download | rneovim-64fa75a86a9e2e301e884e21911d71688fc8f122.tar.gz rneovim-64fa75a86a9e2e301e884e21911d71688fc8f122.tar.bz2 rneovim-64fa75a86a9e2e301e884e21911d71688fc8f122.zip |
fix(column): estimate 'statuscolumn' width appropriately
Problem: The 'statuscolumn' width is being estimated without the
proper context. In particular, this resulted in the fact
that a custom fold column could be included in the estimated
`number_width()`, and doubly added when actually drawing the
statuscolumn due to `win_col_off()` also adding the
`'foldcolumn'` width. Resulting in a status column that is
`'foldcolumn'` cells wider than necessary.
Solution: Estimate 'statuscolumn' width in `get_statuscol_str()` when
a buffer's line count has changed.
Diffstat (limited to 'test/functional/vimscript/eval_spec.lua')
0 files changed, 0 insertions, 0 deletions