view src/testdir/test_fnameescape.vim @ 16894:236c182c6300 v8.1.1448

patch 8.1.1448: statusline is sometimes drawn on top of popup commit https://github.com/vim/vim/commit/988c43310a8dcfad9fbacd110b50ba220227d19a Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jun 2 14:12:11 2019 +0200 patch 8.1.1448: statusline is sometimes drawn on top of popup Problem: Statusline is sometimes drawn on top of popup. Solution: Redraw popups after the statusline. (Naruhiko Nishino, closes #4468)
author Bram Moolenaar <Bram@vim.org>
date Sun, 02 Jun 2019 14:15:06 +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