Mercurial > vim
view src/testdir/test_fnameescape.vim @ 18299:a9cf41bcb5d6 v8.1.2144
patch 8.1.2144: side effects when using t_ti to enable modifyOtherKeys
Commit: https://github.com/vim/vim/commit/171a921b51101c1261040d28a8147c8829b675d3
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Oct 12 21:08:59 2019 +0200
patch 8.1.2144: side effects when using t_ti to enable modifyOtherKeys
Problem: Side effects when using t_ti to enable modifyOtherKeys.
Solution: Add t_TI and t_TE.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 12 Oct 2019 21:15:04 +0200 |
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