mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.0212: missing search/substitute pattern hardly tested
Problem: Missing search/substitute pattern hardly tested. Solution: Add test_clear_search_pat() and tests. (Yegappan Lakshmanan, closes #5579)
This commit is contained in:
@@ -2663,6 +2663,15 @@ free_regexp_stuff(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Free the previously used substitute search pattern.
|
||||
*/
|
||||
void
|
||||
free_regexp_prev_sub(void)
|
||||
{
|
||||
VIM_CLEAR(reg_prev_sub);
|
||||
}
|
||||
|
||||
#ifdef FEAT_EVAL
|
||||
static void
|
||||
report_re_switch(char_u *pat)
|
||||
|
Reference in New Issue
Block a user