comparison src/edit.c @ 10120:fb040c9d8ce9 v7.4.2331

commit https://github.com/vim/vim/commit/33a80eeb859a78ba93432da6fa585786cfd77249 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Sep 5 21:51:14 2016 +0200 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)
author Christian Brabandt <cb@256bit.org>
date Mon, 05 Sep 2016 22:00:06 +0200
parents 4aead6a9b7a9
children 154d5a2e7395
comparison
equal deleted inserted replaced
10119:ed2477b5d292 10120:fb040c9d8ce9
5302 { 5302 {
5303 compl_pattern = vim_strnsave(line, curs_col); 5303 compl_pattern = vim_strnsave(line, curs_col);
5304 if (compl_pattern == NULL) 5304 if (compl_pattern == NULL)
5305 return FAIL; 5305 return FAIL;
5306 set_cmd_context(&compl_xp, compl_pattern, 5306 set_cmd_context(&compl_xp, compl_pattern,
5307 (int)STRLEN(compl_pattern), curs_col); 5307 (int)STRLEN(compl_pattern), curs_col, FALSE);
5308 if (compl_xp.xp_context == EXPAND_UNSUCCESSFUL 5308 if (compl_xp.xp_context == EXPAND_UNSUCCESSFUL
5309 || compl_xp.xp_context == EXPAND_NOTHING) 5309 || compl_xp.xp_context == EXPAND_NOTHING)
5310 /* No completion possible, use an empty pattern to get a 5310 /* No completion possible, use an empty pattern to get a
5311 * "pattern not found" message. */ 5311 * "pattern not found" message. */
5312 compl_col = curs_col; 5312 compl_col = curs_col;