0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

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 #7612, closes #6420)
This commit is contained in:
Bram Moolenaar
2021-01-04 12:42:13 +01:00
parent 82c38fe508
commit d93a7fc1a9
15 changed files with 125 additions and 40 deletions

View File

@@ -7009,9 +7009,9 @@ magic_isset(void)
{
switch (magic_overruled)
{
case MAGIC_ON: return TRUE;
case MAGIC_OFF: return FALSE;
case MAGIC_NOT_SET: break;
case OPTION_MAGIC_ON: return TRUE;
case OPTION_MAGIC_OFF: return FALSE;
case OPTION_MAGIC_NOT_SET: break;
}
#ifdef FEAT_EVAL
if (in_vim9script())