diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-09-02 19:45:15 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-09-02 19:45:15 +0100 |
commit | f5724376ab7362b5a98eaa8a331d663ef722c2a2 (patch) | |
tree | 8f94b50adb9196c5d9b9f9df0c4ef18700367df2 /src/testdir | |
parent | 956be4678fba2051a8d24c15cc5dc67fb89c515f (diff) |
patch 9.0.0362: expanding ":e %" does not work for remote filesv9.0.0362
Problem: Expanding ":e %" does not work for remote files.
Solution: If the "%" or "#" file does not exist add the expansion anyway.
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_cmdline.vim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/testdir/test_cmdline.vim b/src/testdir/test_cmdline.vim index 335e756d6f..80e82eaeb0 100644 --- a/src/testdir/test_cmdline.vim +++ b/src/testdir/test_cmdline.vim @@ -1306,6 +1306,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 |