1
0
forked from aniani/vim

patch 8.1.2126: viminfo not sufficiently tested

Problem:    Viminfo not sufficiently tested.
Solution:   Add more test cases.  Clean up comments. (Yegappan Lakshmanan,
            closes #5032)
This commit is contained in:
Bram Moolenaar
2019-10-09 22:01:25 +02:00
parent b189295b72
commit 6bd1d77067
5 changed files with 116 additions and 74 deletions

View File

@@ -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)
{