forked from aniani/vim
patch 8.0.0365: might free a dict item that wasn't allocated
Problem: Might free a dict item that wasn't allocated. Solution: Call dictitem_free(). (Nikolai Pavlov) Use this for b:changedtick.
This commit is contained in:
@@ -660,7 +660,7 @@ do_exmode(
|
||||
need_wait_return = FALSE;
|
||||
ex_pressedreturn = FALSE;
|
||||
ex_no_reprint = FALSE;
|
||||
changedtick = *curbuf->b_changedtick;
|
||||
changedtick = CHANGEDTICK(curbuf);
|
||||
prev_msg_row = msg_row;
|
||||
prev_line = curwin->w_cursor.lnum;
|
||||
if (improved)
|
||||
@@ -673,7 +673,7 @@ do_exmode(
|
||||
lines_left = Rows - 1;
|
||||
|
||||
if ((prev_line != curwin->w_cursor.lnum
|
||||
|| changedtick != *curbuf->b_changedtick) && !ex_no_reprint)
|
||||
|| changedtick != CHANGEDTICK(curbuf)) && !ex_no_reprint)
|
||||
{
|
||||
if (curbuf->b_ml.ml_flags & ML_EMPTY)
|
||||
EMSG(_(e_emptybuf));
|
||||
|
Reference in New Issue
Block a user