summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2021-10-20 11:01:15 +0100
committerBram Moolenaar <Bram@vim.org>2021-10-20 11:01:15 +0100
commit94358a1e6e640ca5ebeb295efdddd4e92b700673 (patch)
tree81179f39149f91396d2c5af7c70ed758c326fbce /runtime
parent051a40c8d91d4595c69a27375f739367d806a475 (diff)
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.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index c3e894f26d..c009494318 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