Mercurial > vim
view src/testdir/test_fnameescape.vim @ 23754:c425989fe7ac v8.2.2418
patch 8.2.2418: color not changed if ModeMsg highlight is set in InsertEnter
Commit: https://github.com/vim/vim/commit/2e6cdb91e8dea08301f31bc83188c06112eb7f57
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 28 11:07:44 2021 +0100
patch 8.2.2418: color not changed if ModeMsg highlight is set in InsertEnter
Problem: Color not changed if ModeMsg highlight is set in InsertEnter
autocmd event. (Paul Swanson)
Solution: Call highlight_changed() after triggering InsertEnter.
(closes #7751)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 28 Jan 2021 11:15:04 +0100 |
parents | 08940efa6b4e |
children |
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) call assert_equal('\-', fnameescape('-')) call assert_equal('\+', fnameescape('+')) call assert_equal('\>', fnameescape('>')) endfunc " vim: shiftwidth=2 sts=2 expandtab