Mercurial > vim
view src/testdir/test_fnameescape.vim @ 12907:32531a3eab1f v8.0.1330
patch 8.0.1330: MS-Windows: job in terminal can't get back to Vim
commit https://github.com/vim/vim/commit/52dbb5ea7fde4a77178bc59e2383ca40df503812
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Nov 21 18:11:27 2017 +0100
patch 8.0.1330: MS-Windows: job in terminal can't get back to Vim
Problem: MS-Windows: job in terminal can't get back to Vim.
Solution: set VIM_SERVERNAME in the environment. (Yasuhiro Matsumoto, closes
#2360)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 21 Nov 2017 18:15: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