Mercurial > vim
view src/testdir/test102.in @ 5517:064e2a080e2e v7.4.107
updated for version 7.4.107
Problem: Python: When vim.eval() encounters a Vim error, a try/catch in the
Python code doesn't catch it. (Yggdroot Chen)
Solution: Throw exceptions on errors in vim.eval(). (ZyX)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Thu, 28 Nov 2013 17:04:43 +0100 |
parents | 31217cc48e7d |
children | 6f88e2dafbf6 |
line wrap: on
line source
Test if fnameescape is correct for special chars like ! STARTTEST :%d :let fname = 'Xspa ce' :try | exe "w! " . fnameescape(fname) | put='Space' | endtry :let fname = 'Xemark!' :try | exe "w! " . fnameescape(fname) | put='ExclamationMark' | endtry :w! test.out :qa! ENDTEST