diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-02-05 20:38:22 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-02-05 20:38:22 +0100 |
commit | 07ada5ff2fd8f22ed3233ae5c4ddf87c7b3f56fe (patch) | |
tree | 0be9740166fea1f37b2a447558c7eed059b5a671 /src/search.c | |
parent | 94255df057afa0b7dde77612f3274d4440871bd1 (diff) | |
download | vim-git-07ada5ff2fd8f22ed3233ae5c4ddf87c7b3f56fe.tar.gz |
patch 8.2.0212: missing search/substitute pattern hardly testedv8.2.0212
Problem: Missing search/substitute pattern hardly tested.
Solution: Add test_clear_search_pat() and tests. (Yegappan Lakshmanan,
closes #5579)
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 3b310dc2a..08915578f 100644 --- a/src/search.c +++ b/src/search.c @@ -380,6 +380,12 @@ last_search_pattern(void) } #endif + void +free_last_pat(int idx) +{ + VIM_CLEAR(spats[idx].pat); +} + /* * Return TRUE when case should be ignored for search pattern "pat". * Uses the 'ignorecase' and 'smartcase' options. |