diff options
author | itchyny <itchyny@hatena.ne.jp> | 2021-09-20 23:33:10 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-20 07:33:10 -0700 |
commit | 1f8c91bf729707fdb005292aecca8dd79538f4a5 (patch) | |
tree | 7e669cd6e6ae76361ddc031b44d3a1303426c6f0 /src/nvim/ex_docmd.h | |
parent | 30fefee684e641a0c6867446c6de30efa2f0a126 (diff) | |
download | rneovim-1f8c91bf729707fdb005292aecca8dd79538f4a5.tar.gz rneovim-1f8c91bf729707fdb005292aecca8dd79538f4a5.tar.bz2 rneovim-1f8c91bf729707fdb005292aecca8dd79538f4a5.zip |
fix(inccommand): ignore trailing commands only for *previewed* command #15638
Since the `State` is global, other scripts are unexpectedly affected during the
'inccommand' preview. This commit introduces a new flag for `do_cmdline`, in
order to ignore trailing '|'-separated commands only for the command invoking
the preview.
fix #8796, update #7494
Diffstat (limited to 'src/nvim/ex_docmd.h')
-rw-r--r-- | src/nvim/ex_docmd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/ex_docmd.h b/src/nvim/ex_docmd.h index 292e01dd6b..8a78ca0337 100644 --- a/src/nvim/ex_docmd.h +++ b/src/nvim/ex_docmd.h @@ -11,6 +11,7 @@ #define DOCMD_KEYTYPED 0x08 // don't reset KeyTyped #define DOCMD_EXCRESET 0x10 // reset exception environment (for debugging #define DOCMD_KEEPLINE 0x20 // keep typed line for repeating with "." +#define DOCMD_PREVIEW 0x40 // during 'inccommand' preview /* defines for eval_vars() */ #define VALID_PATH 1 |