Mercurial > vim
comparison src/ex_docmd.c @ 10952:835604f3c37a v8.0.0365
patch 8.0.0365: might free a dict item that wasn't allocated
commit https://github.com/vim/vim/commit/95c526e1f6d76acafee4b21f5701d6d6ac8c4b5f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Feb 25 14:59:34 2017 +0100
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.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 25 Feb 2017 15:00:05 +0100 |
parents | 5780bd3a5a7e |
children | c004e17fa36b |
comparison
equal
deleted
inserted
replaced
10951:32704a1de17c | 10952:835604f3c37a |
---|---|
658 } | 658 } |
659 msg_scroll = TRUE; | 659 msg_scroll = TRUE; |
660 need_wait_return = FALSE; | 660 need_wait_return = FALSE; |
661 ex_pressedreturn = FALSE; | 661 ex_pressedreturn = FALSE; |
662 ex_no_reprint = FALSE; | 662 ex_no_reprint = FALSE; |
663 changedtick = *curbuf->b_changedtick; | 663 changedtick = CHANGEDTICK(curbuf); |
664 prev_msg_row = msg_row; | 664 prev_msg_row = msg_row; |
665 prev_line = curwin->w_cursor.lnum; | 665 prev_line = curwin->w_cursor.lnum; |
666 if (improved) | 666 if (improved) |
667 { | 667 { |
668 cmdline_row = msg_row; | 668 cmdline_row = msg_row; |
671 else | 671 else |
672 do_cmdline(NULL, getexmodeline, NULL, DOCMD_NOWAIT); | 672 do_cmdline(NULL, getexmodeline, NULL, DOCMD_NOWAIT); |
673 lines_left = Rows - 1; | 673 lines_left = Rows - 1; |
674 | 674 |
675 if ((prev_line != curwin->w_cursor.lnum | 675 if ((prev_line != curwin->w_cursor.lnum |
676 || changedtick != *curbuf->b_changedtick) && !ex_no_reprint) | 676 || changedtick != CHANGEDTICK(curbuf)) && !ex_no_reprint) |
677 { | 677 { |
678 if (curbuf->b_ml.ml_flags & ML_EMPTY) | 678 if (curbuf->b_ml.ml_flags & ML_EMPTY) |
679 EMSG(_(e_emptybuf)); | 679 EMSG(_(e_emptybuf)); |
680 else | 680 else |
681 { | 681 { |