aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2021-11-18 09:55:59 +0800
committerGitHub <noreply@github.com>2021-11-17 20:55:59 -0500
commit5ff972cafe67dbaad7deafa2de60513f763732f6 (patch)
treed8f2e29f5077bf8545aad3f119a74f09c153734c /src/nvim/testdir
parenteb3d59126eff50c64c2108e308884a722e7ee32e (diff)
downloadrneovim-5ff972cafe67dbaad7deafa2de60513f763732f6.tar.gz
rneovim-5ff972cafe67dbaad7deafa2de60513f763732f6.tar.bz2
rneovim-5ff972cafe67dbaad7deafa2de60513f763732f6.zip
vim-patch:8.2.3522: cannot use \x and \u when setting 'listchars' (#16049)
Problem: Cannot use \x and \u when setting 'listchars'. Solution: Support hex and unicode in hex form. (closes vim/vim#9006) https://github.com/vim/vim/commit/93ff6720fe4427341bc426b6d46e6324f226c270
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_listchars.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_listchars.vim b/src/nvim/testdir/test_listchars.vim
index 8a1393a45d..751be8eff5 100644
--- a/src/nvim/testdir/test_listchars.vim
+++ b/src/nvim/testdir/test_listchars.vim
@@ -286,6 +286,10 @@ func Test_listchars_unicode()
call cursor(1, 1)
call assert_equal(expected, ScreenLines(1, virtcol('$')))
+ set listchars=eol:\\u21d4,space:\\u2423,multispace:≡\\u2262\\U00002263,nbsp:\\U00002260,tab:←↔\\u2192
+ redraw!
+ call assert_equal(expected, ScreenLines(1, virtcol('$')))
+
set listchars+=lead:⇨,trail:⇦
let expected = ['⇨⇨⇨⇨⇨⇨⇨⇨a←↔↔↔↔↔→b␣c≠d⇦⇦⇔']
redraw!