diff options
| author | Sébastien Hoffmann <contact@shoffmann.dev> | 2026-08-01 13:33:52 +0200 |
|---|---|---|
| committer | Sébastien Hoffmann <contact@shoffmann.dev> | 2026-08-04 06:36:58 +0200 |
| commit | 9be130304d39e2223ec976c26e69b87b9ef7a0e2 (patch) | |
| tree | 859f46eeaec40484c5f836223ae47927a219baa7 /runtime/lua/vim/_stringbuffer.lua | |
| parent | 259e6fa9ccb7354cb541cf77c64c0f8196cbe2ec (diff) | |
| download | rneovim-9be130304d39e2223ec976c26e69b87b9ef7a0e2.tar.gz rneovim-9be130304d39e2223ec976c26e69b87b9ef7a0e2.tar.bz2 rneovim-9be130304d39e2223ec976c26e69b87b9ef7a0e2.zip | |
refactor(statusline): simplify and remove dead code
- Remove code that is never executed because the ruler is never rendered
separately for a window with visible statusline or when `ls=3`, in
other words: the variables `part_of_status` and `in_status_line` were
always false for the ruler and badly named for the statusline itself.
- Leave `maxwidth` unchanged after calling `stl_alloc_click_defs`.
- Don't reuse the window's click definitions for the ruler. Even though
it doesn't seem to be a bug because statusline and ruler are never
shown at the same time for the same window, the ruler currently
doesn't support clicks anyway.
- Disentangle the different cases, in particular statusline- from ruler-
specific code. Another example: `wp->w_wincol`, `wp->w_winrow`, and
`wp->w_width` are always used together, but this was hard to see.
Diffstat (limited to 'runtime/lua/vim/_stringbuffer.lua')
0 files changed, 0 insertions, 0 deletions