diff options
| author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-21 12:04:44 -0400 |
|---|---|---|
| committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-21 12:17:17 -0400 |
| commit | 39777ad4b8fdd4e09df85025667845b43e1f2d72 (patch) | |
| tree | 62ef7b58d8ab9425c23cd2c5bf67c22105447cdf /src/nvim/testdir | |
| parent | 387c3be82a34f698d483347cbad4a7cfd39153b8 (diff) | |
| download | rneovim-39777ad4b8fdd4e09df85025667845b43e1f2d72.tar.gz rneovim-39777ad4b8fdd4e09df85025667845b43e1f2d72.tar.bz2 rneovim-39777ad4b8fdd4e09df85025667845b43e1f2d72.zip | |
vim-patch:8.0.1426: "gf" and <cfile> don't accept ? and & in URL
Problem: "gf" and <cfile> don't accept ? and & in URL. (Dmitrii Tcyganok)
Solution: Check for a URL and allow for extra characters. (closes vim/vim#2493)
https://github.com/vim/vim/commit/9e3dfc650190e96739abc004eb9948afa68136b4
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_gf.vim | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_gf.vim b/src/nvim/testdir/test_gf.vim index ef1bf1075b..c352379697 100644 --- a/src/nvim/testdir/test_gf.vim +++ b/src/nvim/testdir/test_gf.vim @@ -7,7 +7,8 @@ func Test_gf_url() \ "first test for URL://machine.name/tmp/vimtest2a and other text", \ "second test for URL://machine.name/tmp/vimtest2b. And other text", \ "third test for URL:\\\\machine.name\\vimtest2c and other text", - \ "fourth test for URL:\\\\machine.name\\tmp\\vimtest2d, and other text" + \ "fourth test for URL:\\\\machine.name\\tmp\\vimtest2d, and other text", + \ "fifth test for URL://machine.name/tmp?q=vim&opt=yes and other text", \ ]) call cursor(1,1) call search("^first") @@ -28,6 +29,10 @@ func Test_gf_url() call search("URL") call assert_equal("URL:\\\\machine.name\\tmp\\vimtest2d", expand("<cfile>")) + call search("^fifth") + call search("URL") + call assert_equal("URL://machine.name/tmp?q=vim&opt=yes", expand("<cfile>")) + set isf&vim enew! endfunc |