summaryrefslogtreecommitdiff
path: root/src/ex_getln.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-03-05 21:21:24 +0100
committerBram Moolenaar <Bram@vim.org>2016-03-05 21:21:24 +0100
commit119d4693e06e68d4f099aa7287e375ae3d265fd0 (patch)
treeb5414f3b9e6e5e7e5658e50cd6533bcda25b9c5a /src/ex_getln.c
parent5983ad0b038fa689653246cb304fd43e8ae39a78 (diff)
downloadvim-git-119d4693e06e68d4f099aa7287e375ae3d265fd0.tar.gz
patch 7.4.1494v7.4.1494
Problem: clr_history() does not work properly. Solution: Increment hisptr. Add a test. (Yegappan Lakshmanan)
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r--src/ex_getln.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c
index 96c3a8ceb..f9791f589 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -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 */