0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 7.4.1494

Problem:    clr_history() does not work properly.
Solution:   Increment hisptr. Add a test. (Yegappan Lakshmanan)
This commit is contained in:
Bram Moolenaar
2016-03-05 21:21:24 +01:00
parent 5983ad0b03
commit 119d4693e0
4 changed files with 69 additions and 0 deletions

View File

@@ -5783,6 +5783,7 @@ clr_history(int histype)
{
vim_free(hisptr->hisstr);
clear_hist_entry(hisptr);
hisptr++;
}
hisidx[histype] = -1; /* mark history as cleared */
hisnum[histype] = 0; /* reset identifier counter */