[vim/vim] listchars: leadmultispace does not count spaces hidden by scrolling off to the side (Issue #13145)

51 views
Skip to first unread message

osthomas

unread,
Sep 21, 2023, 4:10:42 PM9/21/23
to vim/vim, Subscribed

Steps to reproduce

Example:

set listchars=leadmultispace:x--- | hi SpecialKey cterm=NONE gui=NONE guifg=red ctermfg=1

012345678
        A

With the full line in view, this renders as:

012345678
x---x---A

Sidescrolling past the first column, this renders as:

12345678
x---x--A

image

left starting at column 2, right starting at column 1

Expected behaviour

I expected leadmultispace to count the spaces off-screen, rendering as:

12345678
---x---A

Version of Vim

9.0.1837

Environment

$TERM: xterm-256color
Shell: bash

Logs and stack traces

No response


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/13145@github.com>

Tony Mechelynck

unread,
Sep 21, 2023, 7:00:52 PM9/21/23
to vim/vim, Subscribed

Hm. The *lcs-leadmultispace* documentation is not very explicit. I suppose that the easiest solution would be to decide that «t'ain't a bug, it's a feature» and document in the help (maybe also under *lcs-multispace*) that the first character of the value applies to the first visible space of several.

If, OTOH, Christian prefers to treat it like an actual bug, or if you are savvy enough to delve into the code and fix it, then it would mean a patch somewhere in the C code rather than merely in the options.txt helpfile. But in that case, of course, beware of the risk of introducing another bug somewhere else.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/13145/1730462042@github.com>

Christian Brabandt

unread,
Sep 24, 2023, 5:34:12 PM9/24/23
to vim/vim, Subscribed

Closed #13145 as completed via abc8081.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issue/13145/issue_event/10455989922@github.com>

Reply all
Reply to author
Forward
0 new messages