diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-08-13 22:54:35 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-08-13 22:54:35 +0200 |
commit | def7b1dc6104a6ce6d7c3e3a615231178601b124 (patch) | |
tree | 6257847535525b07ee58fb21dd35630c457a089e /src/ex_getln.c | |
parent | 2b926fcb3c5d8bd09a219009336bbec7c66ae67e (diff) | |
download | vim-git-def7b1dc6104a6ce6d7c3e3a615231178601b124.tar.gz |
patch 8.1.0280: 'incsearch' highlighting does not work for ":g!/"v8.1.0280
Problem: 'incsearch' highlighting does not work for ":g!/".
Solution: Skip the exclamation mark. (Hirohito Higashi)
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r-- | src/ex_getln.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c index 8765ac5b2..fb16743f0 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -298,6 +298,13 @@ do_incsearch_highlighting(int firstc, incsearch_state_T *is_state, || STRNCMP(cmd, "global", p - cmd) == 0 || STRNCMP(cmd, "vglobal", p - cmd) == 0)) { + // Check for "global!/". + if (*cmd == 'g' && *p == '!') + { + p++; + if (*skipwhite(p) == NUL) + return FALSE; + } p = skipwhite(p); delim = *p++; end = skip_regexp(p, delim, p_magic, NULL); |