vim-patch:8.0.1193: crash when wiping buffer after getbufinfo()

Problem:    Crash when wiping out a buffer after using getbufinfo().
            (Yegappan Lakshmanan)
Solution:   Remove b:changedtick from the buffer variables.

(Note: The test changes in vim-patch:8.0.1193 were already included.)
This commit is contained in:
Justin M. Keyes
2018-10-28 12:45:30 +01:00
parent 48dc6344d6
commit feee862064
2 changed files with 4 additions and 2 deletions

View File

@@ -508,9 +508,9 @@ struct file_buffer {
int b_changed; // 'modified': Set to true if something in the
// file has been changed and not written out.
/// Change identifier incremented for each change, including undo
/// Change-identifier incremented for each change, including undo.
///
/// This is a dictionary item used to store in b:changedtick.
/// This is a dictionary item used to store b:changedtick.
ChangedtickDictItem changedtick_di;
varnumber_T b_last_changedtick; // b:changedtick when TextChanged or