aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-12-22 18:45:17 -0500
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-12-22 19:43:18 -0500
commit80ebfc304e295cdb1bed3d0f2781d7884933719a (patch)
tree32158dcff76a1b976223c9cb387b52fc68599ba6 /src/nvim/testdir
parentbc8da6cdbe4e300344e45dbc2eb5b22a7afc9e89 (diff)
downloadrneovim-80ebfc304e295cdb1bed3d0f2781d7884933719a.tar.gz
rneovim-80ebfc304e295cdb1bed3d0f2781d7884933719a.tar.bz2
rneovim-80ebfc304e295cdb1bed3d0f2781d7884933719a.zip
vim-patch:8.2.0030: "gF" does not work on output of "verbose command"
Problem: "gF" does not work on output of "verbose command". Solution: Recognize " line " and translations. (closes vim/vim#5391) https://github.com/vim/vim/commit/64e74c9cc7d5aab215cf72d9bdd3aac32e128191
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_gf.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_gf.vim b/src/nvim/testdir/test_gf.vim
index d301874891..4a4ffcefa1 100644
--- a/src/nvim/testdir/test_gf.vim
+++ b/src/nvim/testdir/test_gf.vim
@@ -58,6 +58,14 @@ func Test_gF()
call assert_equal('Xfile', bufname('%'))
call assert_equal(3, getcurpos()[1])
+ enew!
+ call setline(1, ['one', 'the Xfile line 2, and more', 'three'])
+ w! Xfile2
+ normal 2GfX
+ normal gF
+ call assert_equal('Xfile', bufname('%'))
+ call assert_equal(2, getcurpos()[1])
+
set isfname&
call delete('Xfile')
call delete('Xfile2')