vim-patch:8.2.2295: incsearch does not detect empty pattern properly

Problem:    Incsearch does not detect empty pattern properly.
Solution:   Return magic state when skipping over a pattern. (Christian
            Brabandt, closes vim/vim#7612, closes vim/vim#6420)

d93a7fc1a9
This commit is contained in:
zeertzjq
2022-12-04 09:09:00 +08:00
parent a91ba088ab
commit 46e4be0fd0
11 changed files with 140 additions and 45 deletions

View File

@@ -5151,11 +5151,11 @@ int fill_culopt_flags(char *val, win_T *wp)
bool magic_isset(void)
{
switch (magic_overruled) {
case MAGIC_ON:
case OPTION_MAGIC_ON:
return true;
case MAGIC_OFF:
case OPTION_MAGIC_OFF:
return false;
case MAGIC_NOT_SET:
case OPTION_MAGIC_NOT_SET:
break;
}
return p_magic;