Mercurial > vim
diff runtime/doc/builtin.txt @ 31760:f348559ce426 v9.0.1212
patch 9.0.1212: cannot read back what setcellwidths() has done
Commit: https://github.com/vim/vim/commit/66bb9ae70f7371456ed76518076d2a344f8ab417
Author: Kota Kato <github@kat0h.com>
Date: Tue Jan 17 18:31:56 2023 +0000
patch 9.0.1212: cannot read back what setcellwidths() has done
Problem: Cannot read back what setcellwidths() has done.
Solution: Add getcellwidths(). (Kota Kato, closes https://github.com/vim/vim/issues/11837)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 17 Jan 2023 19:45:05 +0100 |
parents | 2d68375d5ddf |
children | a19ef442c77a |
line wrap: on
line diff
--- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -211,6 +211,7 @@ getbufline({buf}, {lnum} [, {end}]) getbufoneline({buf}, {lnum}) String line {lnum} of buffer {buf} getbufvar({buf}, {varname} [, {def}]) any variable {varname} in buffer {buf} +getcellwidths() List get character cell width overrides getchangelist([{buf}]) List list of change list items getchar([expr]) Number or String get one character from the user @@ -3262,6 +3263,13 @@ getbufvar({buf}, {varname} [, {def}]) < Can also be used as a |method|: > GetBufnr()->getbufvar(varname) < +getcellwidths() *getcellwidths()* + Returns a |List| of cell widths of character ranges overridden + by |setcellwidths()|. The format is equal to the argument of + |setcellwidths()|. If no character ranges have their cell + widths overridden, an empty List is returned. + + getchangelist([{buf}]) *getchangelist()* Returns the |changelist| for the buffer {buf}. For the use of {buf}, see |bufname()| above. If buffer {buf} doesn't @@ -9969,7 +9977,7 @@ typename({expr}) *typename()* Return a string representation of the type of {expr}. Example: > echo typename([1, 2, 3]) - list<number> +< list<number> ~ undofile({name}) *undofile()*