xp->xp_backslash = XP_BS_NONE;
xp->xp_prefix = XP_PREFIX_NONE;
xp->xp_numfiles = -1;
- VIM_CLEAR(cmdline_orig);
}
/*
VIM_CLEAR(xp->xp_orig);
}
+ void
+clear_cmdline_orig(void)
+{
+ VIM_CLEAR(cmdline_orig);
+}
+
/*
* Display one line of completion matches. Multiple matches are displayed in
* each line (used by wildmode=list and CTRL-D)
ExpandInit(&xpc);
ccline.xpc = &xpc;
+ clear_cmdline_orig();
#ifdef FEAT_RIGHTLEFT
if (curwin->w_p_rl && *curwin->w_p_rlc == 's'
ExpandCleanup(&xpc);
ccline.xpc = NULL;
+ clear_cmdline_orig();
#ifdef FEAT_SEARCH_EXTRA
finish_incsearch_highlighting(gotesc, &is_state, FALSE);
char_u *ExpandOne(expand_T *xp, char_u *str, char_u *orig, int options, int mode);
void ExpandInit(expand_T *xp);
void ExpandCleanup(expand_T *xp);
+void clear_cmdline_orig(void);
int showmatches(expand_T *xp, int wildmenu);
char_u *addstar(char_u *fname, int len, int context);
void set_expand_context(expand_T *xp);
let &shellslash = save_shellslash
endfunc
-" Testg cmdcomplete_info() with CmdlineLeavePre autocmd
+" Test cmdcomplete_info() with CmdlineLeavePre autocmd
func Test_cmdcomplete_info()
augroup test_CmdlineLeavePre
autocmd!
+ " Calling expand() should not interfere with cmdcomplete_info().
+ autocmd CmdlineLeavePre * call expand('test_cmdline.*')
autocmd CmdlineLeavePre * let g:cmdcomplete_info = string(cmdcomplete_info())
augroup END
new
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1338,
/**/
1337,
/**/