diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-11-15 09:12:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-15 09:12:47 +0100 |
commit | 01ef6fc3d2ac5102fc4e1ee3c0d27643bdfdb775 (patch) | |
tree | 7420ddb5b932719716cc09dd254fa6fc0e8babaf /src/nvim/ex_docmd.c | |
parent | 0c799a8f10b345236efca08f51ffece0e1d1e85d (diff) | |
parent | 35231312d785e4fd1f534e573a43f5a9a4a0fe8f (diff) | |
download | rneovim-01ef6fc3d2ac5102fc4e1ee3c0d27643bdfdb775.tar.gz rneovim-01ef6fc3d2ac5102fc4e1ee3c0d27643bdfdb775.tar.bz2 rneovim-01ef6fc3d2ac5102fc4e1ee3c0d27643bdfdb775.zip |
Merge #5607 from justinmk/icm
'inccommand': auto-disable if too slow; fix other behaviors
Diffstat (limited to 'src/nvim/ex_docmd.c')
-rw-r--r-- | src/nvim/ex_docmd.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index 07e0fa8844..76dddf874d 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -1248,7 +1248,6 @@ static char_u * do_one_cmd(char_u **cmdlinep, memset(&ea, 0, sizeof(ea)); ea.line1 = 1; ea.line2 = 1; - ea.is_live = flags & DOCMD_LIVE; ex_nesting_level++; /* When the last file has not been edited :q has to be typed twice. */ @@ -9648,12 +9647,12 @@ static void ex_terminal(exarg_T *eap) } } -/// Check whether commandline starts with a live command +/// Checks if `cmd` is "previewable" (i.e. supported by 'inccommand'). /// /// @param[in] cmd Commandline to check. May start with a range. /// -/// @return True if first command is a live command -bool cmd_is_live(char_u *cmd) +/// @return true if `cmd` is previewable +bool cmd_can_preview(char_u *cmd) { if (cmd == NULL) { return false; |