Mercurial > vim
view src/testdir/test_fnameescape.vim @ 16474:a85112628edc
Added tag v8.1.1240 for changeset a474f2cd34482397ff10cb3c2410dec6c8ca2ab6
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 30 Apr 2019 21:30:07 +0200 |
parents | 63b02fcf1361 |
children | 73ddc462979d |
line wrap: on
line source
" Test if fnameescape is correct for special chars like ! func 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) endfunc