summaryrefslogtreecommitdiff
path: root/src/search.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/search.c')
-rw-r--r--src/search.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/search.c b/src/search.c
index 88b6c099e..da64e6568 100644
--- a/src/search.c
+++ b/src/search.c
@@ -143,10 +143,8 @@ search_regcomp(
magic = spats[i].magic;
no_smartcase = spats[i].no_scs;
}
-#ifdef FEAT_CMDHIST
else if (options & SEARCH_HIS) /* put new pattern in history */
add_to_history(HIST_SEARCH, pat, TRUE, NUL);
-#endif
#ifdef FEAT_RIGHTLEFT
if (mr_pattern_alloced)