diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-09-03 07:51:51 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2022-09-03 09:01:09 +0800 |
| commit | c62e5b50795d38db68f198a3d1230c047fc0ccfa (patch) | |
| tree | ee597105bada2b66d4d51b6086c70b5e8c39e48a /src/nvim/testdir | |
| parent | 7243b1cbde8a08deab6bf29b452b3383fa4f6d8d (diff) | |
| download | rneovim-c62e5b50795d38db68f198a3d1230c047fc0ccfa.tar.gz rneovim-c62e5b50795d38db68f198a3d1230c047fc0ccfa.tar.bz2 rneovim-c62e5b50795d38db68f198a3d1230c047fc0ccfa.zip | |
vim-patch:9.0.0362: expanding ":e %" does not work for remote files
Problem: Expanding ":e %" does not work for remote files.
Solution: If the "%" or "#" file does not exist add the expansion anyway.
https://github.com/vim/vim/commit/f5724376ab7362b5a98eaa8a331d663ef722c2a2
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_cmdline.vim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_cmdline.vim b/src/nvim/testdir/test_cmdline.vim index bc06e70ff4..e40ff65051 100644 --- a/src/nvim/testdir/test_cmdline.vim +++ b/src/nvim/testdir/test_cmdline.vim @@ -1055,6 +1055,18 @@ func Test_cmdline_write_alternatefile() bw! endfunc +func Test_cmdline_expand_cur_alt_file() + enew + file http://some.com/file.txt + call feedkeys(":e %\<Tab>\<C-B>\"\<CR>", 'xt') + call assert_equal('"e http://some.com/file.txt', @:) + edit another + call feedkeys(":e #\<Tab>\<C-B>\"\<CR>", 'xt') + call assert_equal('"e http://some.com/file.txt', @:) + bwipe + bwipe http://some.com/file.txt +endfunc + " using a leading backslash here set cpo+=C |