diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-09-07 07:36:51 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-06 23:36:51 +0000 |
commit | 738a84de09a053a01e9fc167722aed36cc782a1f (patch) | |
tree | ce2a4a67edf99a1eafa330934d6486680dc5c615 /test | |
parent | 439d031742ce93b2d5acd5c1d14cb027bf895b27 (diff) | |
download | rneovim-738a84de09a053a01e9fc167722aed36cc782a1f.tar.gz rneovim-738a84de09a053a01e9fc167722aed36cc782a1f.tar.bz2 rneovim-738a84de09a053a01e9fc167722aed36cc782a1f.zip |
vim-patch:9.1.0719: Resetting cell widths can make 'listchars' or 'fillchars' invalid (#30289)
Problem: Resetting cell widths can make 'listchars' or 'fillchars'
invalid.
Solution: Check for conflicts when resetting cell widths (zeertzjq).
closes: vim/vim#15629
https://github.com/vim/vim/commit/66f65a46c5d169f20f780721d4f74d4729855b96
Diffstat (limited to 'test')
-rw-r--r-- | test/old/testdir/test_utf8.vim | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/test/old/testdir/test_utf8.vim b/test/old/testdir/test_utf8.vim index f46fb9d744..5cac4066ea 100644 --- a/test/old/testdir/test_utf8.vim +++ b/test/old/testdir/test_utf8.vim @@ -255,15 +255,21 @@ func Test_setcellwidths() call assert_fails('call setcellwidths([[0x33, 0x44, 2]])', 'E1114:') - set listchars=tab:--\\u2192 + set listchars=tab:--\\u2192 fillchars=stl:\\u2501 call assert_fails('call setcellwidths([[0x2192, 0x2192, 2]])', 'E834:') - - set fillchars=stl:\\u2501 call assert_fails('call setcellwidths([[0x2501, 0x2501, 2]])', 'E835:') + call setcellwidths([[0x201c, 0x201d, 1]]) + set listchars& fillchars& ambiwidth=double + + set listchars=nbsp:\\u201c fillchars=vert:\\u201d + call assert_fails('call setcellwidths([])', 'E834:') set listchars& + call assert_fails('call setcellwidths([])', 'E835:') set fillchars& + call setcellwidths([]) + set ambiwidth& bwipe! endfunc |