Patch 8.0.1748
Problem: CmdlineEnter command uses backslash instead of slash.
Solution: Don't treat the character as a file name. (closes #2837)
Files: src/fileio.c, src/testdir/test_autocmd.vim
*** ../vim-8.0.1747/src/fileio.c 2018-04-19 21:15:23.492147088 +0200
--- src/fileio.c 2018-04-22 13:22:59.354301059 +0200
***************
*** 9524,9529 ****
--- 9524,9535 ----
* ColorScheme, QuickFixCmd* or DirChanged */
if (event == EVENT_FILETYPE
|| event == EVENT_SYNTAX
+ || event == EVENT_CMDLINECHANGED
+ || event == EVENT_CMDLINEENTER
+ || event == EVENT_CMDLINELEAVE
+ || event == EVENT_CMDWINENTER
+ || event == EVENT_CMDWINLEAVE
+ || event == EVENT_CMDUNDEFINED
|| event == EVENT_FUNCUNDEFINED
|| event == EVENT_REMOTEREPLY
|| event == EVENT_SPELLFILEMISSING
***************
*** 9532,9538 ****
--- 9538,9547 ----
|| event == EVENT_OPTIONSET
|| event == EVENT_QUICKFIXCMDPOST
|| event == EVENT_DIRCHANGED)
+ {
fname = vim_strsave(fname);
+ autocmd_fname_full = TRUE; /* don't expand it later */
+ }
else
fname = FullName_save(fname, FALSE);
}
*** ../vim-8.0.1747/src/testdir/test_autocmd.vim 2018-04-17
23:24:02.350755880 +0200
--- src/testdir/test_autocmd.vim 2018-04-22 13:18:02.030021812 +0200
***************
*** 837,842 ****
--- 837,844 ----
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,854 ****
--- 851,857 ----
bwipe!
au! CmdlineEnter
au! CmdlineLeave
+ let &shellslash = save_shellslash
endfunc
" Test for BufWritePre autocommand that deletes or unloads the buffer.
*** ../vim-8.0.1747/src/version.c 2018-04-21 23:34:38.530654055 +0200
--- src/version.c 2018-04-22 13:19:32.879501755 +0200
***************
*** 763,764 ****
--- 763,766 ----
{ /* Add new patch number below this line */
+ /**/
+ 1748,
/**/
--
hundred-and-one symptoms of being an internet addict:
246. You use up your free 1 Gbyte in two days.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.