aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2018-07-10 13:33:18 -0400
committerJustin M. Keyes <justinkz@gmail.com>2018-07-10 19:33:18 +0200
commit2574f299e55b85cb9294cedfccda35ad9b2aec21 (patch)
tree54959614e936d7def4c5398ce1810582ff735093 /src/nvim/testdir
parentd241f278d3d9e26f17c9b67ec363c7ed498a4e0f (diff)
downloadrneovim-2574f299e55b85cb9294cedfccda35ad9b2aec21.tar.gz
rneovim-2574f299e55b85cb9294cedfccda35ad9b2aec21.tar.bz2
rneovim-2574f299e55b85cb9294cedfccda35ad9b2aec21.zip
vim-patch:8.0.1464: add slash when completing directory #8684
Problem: Completing directory after :find does not add slash. Solution: Adjust the flags for globpath(). (Genki Sky) https://github.com/vim/vim/commit/8a37b032895b40dd6953280c33585bcba0c7ef8b
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_find_complete.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_find_complete.vim b/src/nvim/testdir/test_find_complete.vim
index 1019246404..7592b16192 100644
--- a/src/nvim/testdir/test_find_complete.vim
+++ b/src/nvim/testdir/test_find_complete.vim
@@ -88,6 +88,12 @@ func Test_find_complete()
call feedkeys(":find f\t\n", "xt")
call assert_equal('Holy Grail', getline(1))
+ " Test that find completion on directory appends a slash
+ call feedkeys(":find in/pa\tfile.txt\n", "xt")
+ call assert_equal('E.T.', getline(1))
+ call feedkeys(":find ./i\tstuff.txt\n", "xt")
+ call assert_equal('Another Holy Grail', getline(1))
+
" Test shortening of
"
" foo/x/bar/voyager.txt