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:
@@ -631,6 +631,19 @@ f_test_autochdir(typval_T *argvars UNUSED, typval_T *rettv UNUSED)
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
* "test_clear_search_pat()"
|
||||
* Free the last search and substitute patterns
|
||||
*/
|
||||
void
|
||||
f_test_clear_search_pat(typval_T *argvars UNUSED, typval_T *rettv UNUSED)
|
||||
{
|
||||
free_last_pat(RE_SUBST);
|
||||
free_last_pat(RE_SEARCH);
|
||||
set_old_sub(NULL);
|
||||
free_regexp_prev_sub();
|
||||
}
|
||||
|
||||
/*
|
||||
* "test_feedinput()"
|
||||
*/
|
||||
|
Reference in New Issue
Block a user