Mercurial > vim
view src/testdir/test_fnameescape.vim @ 11148:87779062d706 v8.0.0461
patch 8.0.0461: test 45 hangs on MS-Windows
commit https://github.com/vim/vim/commit/4a5a8dd6e5fa5581bd24b584a71b5fce9ba34bb8
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Mar 16 13:54:10 2017 +0100
patch 8.0.0461: test 45 hangs on MS-Windows
Problem: Test 45 hangs on MS-Windows.
Solution: Reset 'shiftwidth'. Also remove redundent function.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 16 Mar 2017 14:00:05 +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