summaryrefslogtreecommitdiff
path: root/src/testdir
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-12-22 15:38:06 +0100
committerBram Moolenaar <Bram@vim.org>2019-12-22 15:38:06 +0100
commit64e74c9cc7d5aab215cf72d9bdd3aac32e128191 (patch)
treef56e752def4d77a8c2411a447cc4f47c3fc2b08e /src/testdir
parenta27655ef6d0001c7c2265ea682455ec82acee826 (diff)
downloadvim-git-8.2.0030.tar.gz
patch 8.2.0030: "gF" does not work on output of "verbose command"v8.2.0030
Problem: "gF" does not work on output of "verbose command". Solution: Recognize " line " and translations. (closes #5391)
Diffstat (limited to 'src/testdir')
-rw-r--r--src/testdir/test_gf.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/testdir/test_gf.vim b/src/testdir/test_gf.vim
index d30187489..4a4ffcefa 100644
--- a/src/testdir/test_gf.vim
+++ b/src/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')