summaryrefslogtreecommitdiffstats
path: root/src/ex_getln.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-08-13 22:54:35 +0200
committerBram Moolenaar <Bram@vim.org>2018-08-13 22:54:35 +0200
commitdef7b1dc6104a6ce6d7c3e3a615231178601b124 (patch)
tree6257847535525b07ee58fb21dd35630c457a089e /src/ex_getln.c
parent2b926fcb3c5d8bd09a219009336bbec7c66ae67e (diff)
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.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c
index 8765ac5b24..fb16743f0c 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);