VIm has the same bug once reported to NeoVim: neovim/neovim#14587:
When set number signcolumn=number and a sign having only numhl=... is present on a line, VIm overwrites the line number with the sign's text (which is blank).
The relevant VIm code is likely in src/drawline.c near line 370 as of 9943d47 (v9.1.1243, last modified 2025-03-26).
Screenshot.2025-04-20.at.11.55.02.png (view on web)
Screenshot: lines 1004, 1011, and 1016 have no signs; their line numbers are shown. Every other line has exactly one of these two signs: covered (numhl=... with ctermbg=green ctermfg=black) or uncovered (same, but ctermbg=red). Lines 1012-1015 also have a sign with text (W>) showing a warning from the LSP; this demonstrates that it's not formatting causing the line numbers to be invisible.
When set number signcolumn=number and a sign having only numhl=... is present on a line, that line should be rendered with the highlight referenced by numhl applied to the actual line number, as shown in this hasty mockup:
Screenshot.2025-04-20.at.11.55.02.expected.png (view on web)
9.1.1250
macOS 15.3
iTerm2 3.5.13beta1
TERM=xterm
SHELL=bash 5.2 from homebrew
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
thanks, would you mind creating a PR with a test then please?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Closed #17169 as completed via 1b18683.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()