diff options
author | zeertzjq <zeertzjq@outlook.com> | 2021-10-20 11:01:15 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-10-20 11:01:15 +0100 |
commit | 94358a1e6e640ca5ebeb295efdddd4e92b700673 (patch) | |
tree | 81179f39149f91396d2c5af7c70ed758c326fbce /runtime | |
parent | 051a40c8d91d4595c69a27375f739367d806a475 (diff) | |
download | vim-git-94358a1e6e640ca5ebeb295efdddd4e92b700673.tar.gz |
patch 8.2.3545: setcellwidths() may make 'listchars' or 'fillchars' invalidv8.2.3545
Problem: setcellwidths() may make 'listchars' or 'fillchars' invalid.
Solution: Check the value and give an error. (closes #9024)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/eval.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index c3e894f26..c00949431 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -9648,6 +9648,9 @@ setcellwidths({list}) *setcellwidths()* range overlaps with another. Only characters with value 0x100 and higher can be used. + If the new value causes 'fillchars' or 'listchars' to become + invalid it is rejected and an error is given. + To clear the overrides pass an empty list: > setcellwidths([]); < You can use the script $VIMRUNTIME/tools/emoji_list.vim to see |