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:
@@ -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())
|
||||
|
Reference in New Issue
Block a user