commit | 119d4693e06e68d4f099aa7287e375ae3d265fd0 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Mar 05 21:21:24 2016 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Mar 05 21:21:24 2016 +0100 |
tree | b5414f3b9e6e5e7e5658e50cd6533bcda25b9c5a | |
parent | 5983ad0b038fa689653246cb304fd43e8ae39a78 [diff] [blame] |
patch 7.4.1494 Problem: clr_history() does not work properly. Solution: Increment hisptr. Add a test. (Yegappan Lakshmanan)
diff --git a/src/ex_getln.c b/src/ex_getln.c index 96c3a8c..f9791f5 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c
@@ -5783,6 +5783,7 @@ { vim_free(hisptr->hisstr); clear_hist_entry(hisptr); + hisptr++; } hisidx[histype] = -1; /* mark history as cleared */ hisnum[histype] = 0; /* reset identifier counter */