]> git.ipfire.org Git - thirdparty/vim.git/commit
runtime(doc): make :h virtcol() more accurate
authorzeertzjq <zeertzjq@outlook.com>
Wed, 1 Oct 2025 18:30:38 +0000 (18:30 +0000)
committerChristian Brabandt <cb@256bit.org>
Wed, 1 Oct 2025 18:30:38 +0000 (18:30 +0000)
commit014c731fa50c28c94d56545938b6a05a86234c30
treeb348acfe2cda06f8c9f56ba9b980399e55addb4a
parent21d40d2d41f3f0d6463f48118f7924ac8ed7852e
runtime(doc): make :h virtcol() more accurate

The current description (especially the "unlimited width" part) is
inaccurate in several ways:
- The size of virtual text can depend on window width. In particular,
  the size of "above" virtual text can be equal to window width.
- A double-width character that doesn't fit adds 1 to the virtual column
  of the following characters.
- The size of 'showbreak' and 'breakindent' is counted.

related: #5713
closes: #18447

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/builtin.txt