summaryrefslogtreecommitdiff
path: root/src/normal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/normal.c')
-rw-r--r--src/normal.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/normal.c b/src/normal.c
index 160beb654..befe4ac9e 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -5602,6 +5602,7 @@ nv_ident(cap)
STRCAT(buf, "\\>");
#ifdef FEAT_CMDHIST
/* put pattern in search history */
+ init_history();
add_to_history(HIST_SEARCH, buf, TRUE, NUL);
#endif
normal_search(cap, cmdchar == '*' ? '/' : '?', buf, 0);