comparison src/edit.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 3b82ab325d59
children 5362b4b6042c
comparison
equal deleted inserted replaced
10951:32704a1de17c 10952:835604f3c37a
1666 #endif 1666 #endif
1667 1667
1668 #ifdef FEAT_AUTOCMD 1668 #ifdef FEAT_AUTOCMD
1669 /* Trigger TextChangedI if b_changedtick differs. */ 1669 /* Trigger TextChangedI if b_changedtick differs. */
1670 if (ready && has_textchangedI() 1670 if (ready && has_textchangedI()
1671 && last_changedtick != *curbuf->b_changedtick 1671 && last_changedtick != CHANGEDTICK(curbuf)
1672 # ifdef FEAT_INS_EXPAND 1672 # ifdef FEAT_INS_EXPAND
1673 && !pum_visible() 1673 && !pum_visible()
1674 # endif 1674 # endif
1675 ) 1675 )
1676 { 1676 {
1677 if (last_changedtick_buf == curbuf) 1677 if (last_changedtick_buf == curbuf)
1678 apply_autocmds(EVENT_TEXTCHANGEDI, NULL, NULL, FALSE, curbuf); 1678 apply_autocmds(EVENT_TEXTCHANGEDI, NULL, NULL, FALSE, curbuf);
1679 last_changedtick_buf = curbuf; 1679 last_changedtick_buf = curbuf;
1680 last_changedtick = *curbuf->b_changedtick; 1680 last_changedtick = CHANGEDTICK(curbuf);
1681 } 1681 }
1682 #endif 1682 #endif
1683 1683
1684 if (must_redraw) 1684 if (must_redraw)
1685 update_screen(0); 1685 update_screen(0);