Permalink
Browse files

patch 7.4.2357

Problem:    Attempt to read history entry while not initialized.
Solution:   Skip when the index is negative.
  • Loading branch information...
1 parent ea683da commit 46643713dc6bb04b4e84986b1763ef309e960161 @brammool brammool committed Sep 9, 2016
Showing with 3 additions and 1 deletion.
  1. +1 −1 src/ex_getln.c
  2. +2 −0 src/version.c
View
@@ -5762,7 +5762,7 @@ add_to_history(
*/
if (histype == HIST_SEARCH && in_map)
{
- if (maptick == last_maptick)
+ if (maptick == last_maptick && hisidx[HIST_SEARCH] >= 0)
{
/* Current line is from the same mapping, remove it */
hisptr = &history[HIST_SEARCH][hisidx[HIST_SEARCH]];
View
@@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2357,
+/**/
2356,
/**/
2355,

0 comments on commit 4664371

Please sign in to comment.