From 33a80eeb859a78ba93432da6fa585786cfd77249 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 5 Sep 2016 21:51:14 +0200 Subject: patch 7.4.2331 Problem: Using CTRL-X CTRL-V to complete a command line from Insert mode does not work after entering an expression on the command line. Solution: Don't use "ccline" when not actually using a command line. (test by Hirohito Higashi) --- src/edit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/edit.c') diff --git a/src/edit.c b/src/edit.c index 6d985827a..a87c155c7 100644 --- a/src/edit.c +++ b/src/edit.c @@ -5304,7 +5304,7 @@ ins_complete(int c, int enable_pum) if (compl_pattern == NULL) return FAIL; set_cmd_context(&compl_xp, compl_pattern, - (int)STRLEN(compl_pattern), curs_col); + (int)STRLEN(compl_pattern), curs_col, FALSE); if (compl_xp.xp_context == EXPAND_UNSUCCESSFUL || compl_xp.xp_context == EXPAND_NOTHING) /* No completion possible, use an empty pattern to get a -- cgit v1.2.1