diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-10-09 22:01:25 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-10-09 22:01:25 +0200 |
commit | 6bd1d7706766a7899904163e8fd55ea117fb1953 (patch) | |
tree | 71c8a19d4006da17e0673d902151ff1980bcfacb /src/search.c | |
parent | b189295b72030f00c45c30d3daecf85d457221f8 (diff) | |
download | vim-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.c | 6 |
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) { |