Mercurial > vim
view src/testdir/test_fnameescape.vim @ 16541:822d00007b34 v8.1.1274
patch 8.1.1274: after :unmenu can still execute the menu with :emenu
commit https://github.com/vim/vim/commit/ce79353ace9e21238f13655089363cd23cbb6b32
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun May 5 14:19:20 2019 +0200
patch 8.1.1274: after :unmenu can still execute the menu with :emenu
Problem: After :unmenu can still execute the menu with :emenu.
Solution: Do not execute a menu that was disabled for the specified mode.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 05 May 2019 14:30:05 +0200 |
parents | 63b02fcf1361 |
children | 73ddc462979d |
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! " . fnameescape(fname) let status = v:true endtry call assert_true(status, "ExclamationMark") call delete(fname) endfunc