diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-08-23 13:31:07 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2022-08-23 17:48:12 +0800 |
| commit | d459b6687704b7d1f230d0b14c0d59f87cf5f67d (patch) | |
| tree | d65ac06e9560138c20f09d6f8269b4d9e2d29713 /src/nvim/testdir/test_expand_func.vim | |
| parent | f1b8683b8c2f4a48d501c9dedef664f17761b8ac (diff) | |
| download | rneovim-d459b6687704b7d1f230d0b14c0d59f87cf5f67d.tar.gz rneovim-d459b6687704b7d1f230d0b14c0d59f87cf5f67d.tar.bz2 rneovim-d459b6687704b7d1f230d0b14c0d59f87cf5f67d.zip | |
vim-patch:8.2.4842: expand("%:p") is not empty when there is no buffer name
Problem: expand("%:p") is not empty when there is no buffer name.
Solution: When ignoring errors still return NULL. (closes vim/vim#10311)
https://github.com/vim/vim/commit/211a5bb2353c66684f38527184a258921f95c9d9
Diffstat (limited to 'src/nvim/testdir/test_expand_func.vim')
| -rw-r--r-- | src/nvim/testdir/test_expand_func.vim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_expand_func.vim b/src/nvim/testdir/test_expand_func.vim index dfe4ce105c..80bfdb8553 100644 --- a/src/nvim/testdir/test_expand_func.vim +++ b/src/nvim/testdir/test_expand_func.vim @@ -107,7 +107,7 @@ endfunc func Test_expand() new - call assert_equal("''", expand('%:S')) + call assert_equal("", expand('%:S')) call assert_equal('3', '<slnum>'->expand()) call assert_equal(['4'], expand('<slnum>', v:false, v:true)) " Don't add any line above this, otherwise <slnum> will change. @@ -115,6 +115,7 @@ func Test_expand() set verbose=1 call assert_equal("", expand('%')) set verbose=0 + call assert_equal("", expand('%:p')) quit endfunc |