Mercurial > vim
view src/testdir/test_fnameescape.vim @ 18977:5bef1043abff v8.2.0049
patch 8.2.0049: command line completion not fully tested
Commit: https://github.com/vim/vim/commit/297610ba4b110c918ffe60c45eb4a1d6ea2daae5
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Dec 27 17:20:55 2019 +0100
patch 8.2.0049: command line completion not fully tested
Problem: Command line completion not fully tested.
Solution: Add more test cases. Make help sorting stable. (Dominique Pelle,
closes #5402)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 27 Dec 2019 17:30:03 +0100 |
parents | 73ddc462979d |
children | b8fd7364befd |
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! " . fname->fnameescape() let status = v:true endtry call assert_true(status, "ExclamationMark") call delete(fname) endfunc