aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/range.lua
diff options
context:
space:
mode:
authorSébastien Hoffmann <contact@shoffmann.dev>2026-06-16 20:12:25 +0200
committerSébastien Hoffmann <contact@shoffmann.dev>2026-07-11 18:31:54 +0200
commit60687ccb6af6a93a7cbcca4535a3d65d1cc21eb3 (patch)
tree1effbc2d0a2309d0650357b9517b6094ae77c4fb /runtime/lua/vim/range.lua
parentc5be3315027de331bc201c3a4bb69180e33f6360 (diff)
downloadrneovim-60687ccb6af6a93a7cbcca4535a3d65d1cc21eb3.tar.gz
rneovim-60687ccb6af6a93a7cbcca4535a3d65d1cc21eb3.tar.bz2
rneovim-60687ccb6af6a93a7cbcca4535a3d65d1cc21eb3.zip
fix(ui2)!: consistent ruler width inside/outside statusline
Problem: before ui2, the ruler in the last line had a one cell safety margin on the right because writing in the last column of the last line "scrolls the screen up on some terminals," according to code comments. When the ruler is included in the statusline, it aligns on the left with the normal ruler, but goes all the way to the screen edge on the right, and is therefore one cell longer. Since ui2 doesn't have that padding cell, they don't align anymore. Also, in the future, when the C implementation of the ruler will be replaced with a default expression that will be included in the default statusline (currently `%-14.(%l,%c%V%) %P`), the width will naturally be the same in both places, and the unit tests will need adapting anyway. Solution: when ui2 is active, increase the ruler width by 1. BREAKING CHANGE: the default ruler in ui2 is now 1 cell wider. ref https://github.com/neovim/neovim/issues/40247
Diffstat (limited to 'runtime/lua/vim/range.lua')
0 files changed, 0 insertions, 0 deletions