1
0
forked from aniani/vim

patch 8.2.3545: setcellwidths() may make 'listchars' or 'fillchars' invalid

Problem:    setcellwidths() may make 'listchars' or 'fillchars' invalid.
Solution:   Check the value and give an error. (closes #9024)
This commit is contained in:
zeertzjq
2021-10-20 11:01:15 +01:00
committed by Bram Moolenaar
parent 051a40c8d9
commit 94358a1e6e
6 changed files with 56 additions and 3 deletions

View File

@@ -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