summaryrefslogtreecommitdiff
path: root/src/search.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-10-09 22:01:25 +0200
committerBram Moolenaar <Bram@vim.org>2019-10-09 22:01:25 +0200
commit6bd1d7706766a7899904163e8fd55ea117fb1953 (patch)
tree71c8a19d4006da17e0673d902151ff1980bcfacb /src/search.c
parentb189295b72030f00c45c30d3daecf85d457221f8 (diff)
downloadvim-git-6bd1d7706766a7899904163e8fd55ea117fb1953.tar.gz
patch 8.1.2126: viminfo not sufficiently testedv8.1.2126
Problem: Viminfo not sufficiently tested. Solution: Add more test cases. Clean up comments. (Yegappan Lakshmanan, closes #5032)
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 a0ca8df62..77c3aa492 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)
{