aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-13 12:25:01 +0800
committerGitHub <noreply@github.com>2022-08-13 12:25:01 +0800
commit1de62b9ea17b08db0fe37caf1f054b7b809120c3 (patch)
tree105f42dd76f70722032b9e343dd2226459ac84ae /runtime
parent754892e59dc3ab65a92d22f315e88b716bc26d1d (diff)
downloadrneovim-1de62b9ea17b08db0fe37caf1f054b7b809120c3.tar.gz
rneovim-1de62b9ea17b08db0fe37caf1f054b7b809120c3.tar.bz2
rneovim-1de62b9ea17b08db0fe37caf1f054b7b809120c3.zip
fix(charclass): make behavior with empty str match latest Vim (#19749)
Later Vim patches changed to return 0 for empty string and null string. Also update setcellwidth() docs to match latest Vim.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/builtin.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt
index 719953bc22..291eea7263 100644
--- a/runtime/doc/builtin.txt
+++ b/runtime/doc/builtin.txt
@@ -6838,9 +6838,9 @@ setcellwidths({list}) *setcellwidths()*
tells Vim how wide characters are, counted in screen cells.
This overrides 'ambiwidth'. Example: >
setcellwidths([[0xad, 0xad, 1],
- \ [0x2194, 0x2199, 2]])
+ \ [0x2194, 0x2199, 2]])
-< *E1109* *E1110* *E1111* *E1112* *E1113*
+< *E1109* *E1110* *E1111* *E1112* *E1113* *E1114*
The {list} argument is a list of lists with each three
numbers. These three numbers are [low, high, width]. "low"
and "high" can be the same, in which case this refers to one
@@ -6856,7 +6856,8 @@ setcellwidths({list}) *setcellwidths()*
To clear the overrides pass an empty list: >
setcellwidths([]);
-
+< You can use the script $VIMRUNTIME/tools/emoji_list.vim to see
+ the effect for known emoji characters.
setcharpos({expr}, {list}) *setcharpos()*
Same as |setpos()| but uses the specified column number as the