forked from aniani/vim
patch 8.1.0280: 'incsearch' highlighting does not work for ":g!/"
Problem: 'incsearch' highlighting does not work for ":g!/". Solution: Skip the exclamation mark. (Hirohito Higashi)
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user