summaryrefslogtreecommitdiff
path: root/src/tag.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-01-04 12:42:13 +0100
committerBram Moolenaar <Bram@vim.org>2021-01-04 12:42:13 +0100
commitd93a7fc1a98a58f8101ee780d4735079ad99ae35 (patch)
tree15445b4ab17588d6786645d1ff1235dfd4bb9fb6 /src/tag.c
parent82c38fe508155c11a904e6111b5bfb6adde3fb9a (diff)
downloadvim-git-d93a7fc1a98a58f8101ee780d4735079ad99ae35.tar.gz
patch 8.2.2295: incsearch does not detect empty pattern properlyv8.2.2295
Problem: Incsearch does not detect empty pattern properly. Solution: Return magic state when skipping over a pattern. (Christian Brabandt, closes #7612, closes #6420)
Diffstat (limited to 'src/tag.c')
-rw-r--r--src/tag.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tag.c b/src/tag.c
index c4896b384..3dfb8fee5 100644
--- a/src/tag.c
+++ b/src/tag.c
@@ -3312,7 +3312,7 @@ jumpto_tag(
int keep_help) // keep help flag (FALSE for cscope)
{
int save_secure;
- int save_magic_overruled;
+ optmagic_T save_magic_overruled;
int save_p_ws, save_p_scs, save_p_ic;
linenr_T save_lnum;
char_u *str;
@@ -3505,7 +3505,7 @@ jumpto_tag(
++sandbox;
#endif
save_magic_overruled = magic_overruled;
- magic_overruled = MAGIC_OFF; // always execute with 'nomagic'
+ magic_overruled = OPTION_MAGIC_OFF; // always execute with 'nomagic'
#ifdef FEAT_SEARCH_EXTRA
// Save value of no_hlsearch, jumping to a tag is not a real search
save_no_hlsearch = no_hlsearch;