diff --git a/runtime/doc/vimfn.txt b/runtime/doc/vimfn.txt index fd5b07da0c..93f5428776 100644 --- a/runtime/doc/vimfn.txt +++ b/runtime/doc/vimfn.txt @@ -11610,9 +11610,9 @@ values({dict}) *values()* virtcol({expr} [, {list} [, {winid}]]) *virtcol()* The result is a Number, which is the screen column of the file - position given with {expr}. That is, the last screen position - occupied by the character at that position, when the screen - would be of unlimited width. When there is a at the + position given with {expr}. That is, the total number of + screen cells occupied by the part of the line until the end of + the character at that position. When there is a at the position, the returned Number will be the column at the end of the . For example, for a in column 1, with 'ts' set to 8, it returns 8. |conceal| is ignored. diff --git a/runtime/lua/vim/_meta/vimfn.lua b/runtime/lua/vim/_meta/vimfn.lua index 396c201b3c..bd77474d59 100644 --- a/runtime/lua/vim/_meta/vimfn.lua +++ b/runtime/lua/vim/_meta/vimfn.lua @@ -10567,9 +10567,9 @@ function vim.fn.utf16idx(string, idx, countcc, charidx) end function vim.fn.values(dict) end --- The result is a Number, which is the screen column of the file ---- position given with {expr}. That is, the last screen position ---- occupied by the character at that position, when the screen ---- would be of unlimited width. When there is a at the +--- position given with {expr}. That is, the total number of +--- screen cells occupied by the part of the line until the end of +--- the character at that position. When there is a at the --- position, the returned Number will be the column at the end of --- the . For example, for a in column 1, with 'ts' --- set to 8, it returns 8. |conceal| is ignored. diff --git a/src/nvim/eval.lua b/src/nvim/eval.lua index 88992f0632..f6a7b5a871 100644 --- a/src/nvim/eval.lua +++ b/src/nvim/eval.lua @@ -12790,9 +12790,9 @@ M.funcs = { base = 1, desc = [=[ The result is a Number, which is the screen column of the file - position given with {expr}. That is, the last screen position - occupied by the character at that position, when the screen - would be of unlimited width. When there is a at the + position given with {expr}. That is, the total number of + screen cells occupied by the part of the line until the end of + the character at that position. When there is a at the position, the returned Number will be the column at the end of the . For example, for a in column 1, with 'ts' set to 8, it returns 8. |conceal| is ignored.