view src/testdir/test_fnameescape.vim @ 16507:7c6fe15778cf v8.1.1257

patch 8.1.1257: MSVC: name of object directory now always right commit https://github.com/vim/vim/commit/819d3e52a1eab35409ea7e0ebdb2340507a42684 Author: Bram Moolenaar <Bram@vim.org> Date: Fri May 3 22:15:03 2019 +0200 patch 8.1.1257: MSVC: name of object directory now always right Problem: MSVC: name of object directory now always right. Solution: Adjust comment. Don't use different directory for DIRECTX. Do use different directory for USE_MSVCRT. (Ken Takata, closes #4333)
author Bram Moolenaar <Bram@vim.org>
date Fri, 03 May 2019 22: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