comparison src/testdir/test_find_complete.vim @ 13180:0dfd846f9190 v8.0.1464

patch 8.0.1464: completing directory after :find does not add slash commit https://github.com/vim/vim/commit/8a37b032895b40dd6953280c33585bcba0c7ef8b Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 3 20:43:08 2018 +0100 patch 8.0.1464: completing directory after :find does not add slash Problem: Completing directory after :find does not add slash. Solution: Adjust the flags for globpath(). (Genki Sky)
author Christian Brabandt <cb@256bit.org>
date Sat, 03 Feb 2018 20:45:06 +0100
parents 90aaa974594e
children 26a04a556982
comparison
equal deleted inserted replaced
13179:32d3b42f9524 13180:0dfd846f9190
84 cd Xfind 84 cd Xfind
85 set path=,, 85 set path=,,
86 call feedkeys(":find f\t\n", "xt") 86 call feedkeys(":find f\t\n", "xt")
87 call assert_equal('Holy Grail', getline(1)) 87 call assert_equal('Holy Grail', getline(1))
88 88
89 " Test that find completion on directory appends a slash
90 call feedkeys(":find in/pa\tfile.txt\n", "xt")
91 call assert_equal('E.T.', getline(1))
92 call feedkeys(":find ./i\tstuff.txt\n", "xt")
93 call assert_equal('Another Holy Grail', getline(1))
94
89 " Test shortening of 95 " Test shortening of
90 " 96 "
91 " foo/x/bar/voyager.txt 97 " foo/x/bar/voyager.txt
92 " foo/y/bar/voyager.txt 98 " foo/y/bar/voyager.txt
93 " 99 "