diff src/testdir/test_autocmd.vim @ 13752:8a3e9d1e8cf9 v8.0.1748

patch 8.0.1748: CmdlineEnter command uses backslash instead of slash commit https://github.com/vim/vim/commit/a4baf5b32519855bb176a7aa0e9397c137ca890a Author: Bram Moolenaar <Bram@vim.org> Date: Sun Apr 22 13:27:44 2018 +0200 patch 8.0.1748: CmdlineEnter command uses backslash instead of slash Problem: CmdlineEnter command uses backslash instead of slash. Solution: Don't treat the character as a file name. (closes https://github.com/vim/vim/issues/2837)
author Christian Brabandt <cb@256bit.org>
date Sun, 22 Apr 2018 13:30:08 +0200
parents 7d2039b2ecc8
children 415185e2c970
line wrap: on
line diff
--- a/src/testdir/test_autocmd.vim
+++ b/src/testdir/test_autocmd.vim
@@ -837,6 +837,8 @@ func Test_Cmdline()
   au! CmdlineEnter
   au! CmdlineLeave
 
+  let save_shellslash = &shellslash
+  set noshellslash
   au! CmdlineEnter / let g:entered = expand('<afile>')
   au! CmdlineLeave / let g:left = expand('<afile>')
   let g:entered = 0
@@ -849,6 +851,7 @@ func Test_Cmdline()
   bwipe!
   au! CmdlineEnter
   au! CmdlineLeave
+  let &shellslash = save_shellslash
 endfunc
 
 " Test for BufWritePre autocommand that deletes or unloads the buffer.