diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-02-17 16:31:35 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-02-17 16:31:35 +0100 |
commit | 79518e2ace5fce7b9c49060e462a6e935dba0a84 (patch) | |
tree | 5a5b1284386ac2aff2f39f50238327a54b46a7c3 /src/fileio.c | |
parent | 226c53429109f24e31c17016aedfd7fbf7a9aa50 (diff) |
patch 8.0.0334: can't access b:changedtick from a dict referencev8.0.0334
Problem: Can't access b:changedtick from a dict reference.
Solution: Make changedtick a member of the b: dict. (inspired by neovim
#6112)
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fileio.c b/src/fileio.c index 9380953d21..73baecc037 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -4926,9 +4926,9 @@ restore_backup: #ifdef FEAT_AUTOCMD /* buf->b_changedtick is always incremented in unchanged() but that * should not trigger a TextChanged event. */ - if (last_changedtick + 1 == buf->b_changedtick + if (last_changedtick + 1 == *buf->b_changedtick && last_changedtick_buf == buf) - last_changedtick = buf->b_changedtick; + last_changedtick = *buf->b_changedtick; #endif u_unchanged(buf); u_update_save_nr(buf); |