summaryrefslogtreecommitdiffstats
path: root/src/search.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/search.c')
-rw-r--r--src/search.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/search.c b/src/search.c
index a0ca8df622..77c3aa4922 100644
--- a/src/search.c
+++ b/src/search.c
@@ -5783,12 +5783,18 @@ show_pat_in_path(
#endif
#ifdef FEAT_VIMINFO
+/*
+ * Return the last used search pattern at "idx".
+ */
spat_T *
get_spat(int idx)
{
return &spats[idx];
}
+/*
+ * Return the last used search pattern index.
+ */
int
get_spat_last_idx(void)
{