diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2016-11-07 03:08:31 +0100 | 
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2016-11-08 21:22:24 +0100 | 
| commit | ff6ec703d5f5b57a3c18034ba8a110ffcbf41cea (patch) | |
| tree | 778fae537f22ec13628fbd42887673c97dcc4bb8 /src/nvim/ex_getln.c | |
| parent | 527ba2b12ae71b3010df00f38bfb48a91a35a7d5 (diff) | |
| download | rneovim-ff6ec703d5f5b57a3c18034ba8a110ffcbf41cea.tar.gz rneovim-ff6ec703d5f5b57a3c18034ba8a110ffcbf41cea.tar.bz2 rneovim-ff6ec703d5f5b57a3c18034ba8a110ffcbf41cea.zip | |
'inccommand': Do not trigger during scripts, feedkeys().
Diffstat (limited to 'src/nvim/ex_getln.c')
| -rw-r--r-- | src/nvim/ex_getln.c | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index 07b50a8056..04e7d2fbcf 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -1592,10 +1592,11 @@ static int command_line_changed(CommandLineState *s)      redrawcmdline();      s->did_incsearch = true;    } else if (s->firstc == ':' +             && KeyTyped            // only if interactive               && *p_icm != NUL       // 'inccommand' is set               && cmdline_star == 0   // not typing a password               && cmd_is_live(ccline.cmdbuff)) { -    // process a "live" command +    // process a "live" command ('inccommand')      do_cmdline(ccline.cmdbuff, NULL, NULL, DOCMD_KEEPLINE|DOCMD_LIVE);      redrawcmdline();    } | 
