Mercurial > vim
view src/testdir/test_fnameescape.vim @ 14031:d1eac0853a20 v8.1.0033
patch 8.1.0033: keys to stop Vim in terminal are wrong
commit https://github.com/vim/vim/commit/acb9effecc9f54b93398a44cc0ec40e77978e094
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jun 4 19:11:11 2018 +0200
patch 8.1.0033: keys to stop Vim in terminal are wrong
Problem: Keys to stop Vim in terminal are wrong. (Marius Gedminas)
Solution: Move ":" to before CTRL-U.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 04 Jun 2018 19:15:05 +0200 |
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