Mercurial > vim
view src/testdir/test_fnameescape.vim @ 18323:72a0dbe1c004 v8.1.2156
patch 8.1.2156: first character after Tab is not highlighted
Commit: https://github.com/vim/vim/commit/9115c611dbd3e4abab583eade6888421f66077e7
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Oct 16 16:57:06 2019 +0200
patch 8.1.2156: first character after Tab is not highlighted
Problem: First character after Tab is not highlighted.
Solution: Remember the syntax attribute for a column.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 16 Oct 2019 17:00:03 +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