Re: [vim/vim] textprop: wrong Tab size in a line with virtual text above it (PR #20901)

h_east (Vim Github Repository) <[email protected]> Fri, 31 Jul 2026 20:54:35 -0700
Newsgroups gmane.editors.vim.devel
Message-ID <vim/vim/pull/20901/[email protected]>
h-east left a comment (vim/vim#20901)

Yeah, virtcol() counts the screen line of the text above as
a full window width, so the column computation and the drawing agreed before,
both with the wrong Tab size.

The Tab size is now also computed without those columns in
win_lbr_chartabsize(), so both agree again.  With your example and a window
width of 75, "6gg0fd" puts the cursor on the "d" and the Tabs have the right
size.  The test checks the cursor position now as well.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/vim/vim/pull/20901#issuecomment-5149670513
You are receiving this because you are subscribed to this thread.

Message ID: <vim/vim/pull/20901/[email protected]>

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/vim_dev/vim/vim/pull/20901/c5149670513%40github.com.