mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 23:48:32 +00:00
'inccommand': Do not trigger during scripts, feedkeys().
This commit is contained in:
@@ -124,7 +124,7 @@ struct exarg {
|
||||
LineGetter getline; ///< Function used to get the next line
|
||||
void *cookie; ///< argument for getline()
|
||||
struct condstack *cstack; ///< condition stack for ":if" etc.
|
||||
bool is_live; ///< live preview
|
||||
bool is_live; ///< 'inccommand' live preview
|
||||
};
|
||||
|
||||
#define FORCE_BIN 1 // ":edit ++bin file"
|
||||
|
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user