mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 14:38:32 +00:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user