Mercurial > vim
view src/testdir/test_fnameescape.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 | eb9a7296ae9f |
children | 63b02fcf1361 |
line wrap: on
line source
" Test if fnameescape is correct for special chars like ! function! Test_fnameescape() let fname = 'Xspa ce' let status = v:false try exe "w! " . fnameescape(fname) let status = v:true endtry call assert_true(status, "Space") call delete(fname) let fname = 'Xemark!' let status = v:false try exe "w! " . fnameescape(fname) let status = v:true endtry call assert_true(status, "ExclamationMark") call delete(fname) endfunction