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/structs.h | |
parent | 226c53429109f24e31c17016aedfd7fbf7a9aa50 (diff) | |
download | vim-git-79518e2ace5fce7b9c49060e462a6e935dba0a84.tar.gz |
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/structs.h')
-rw-r--r-- | src/structs.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/structs.h b/src/structs.h index a53a12516..23ce826a3 100644 --- a/src/structs.h +++ b/src/structs.h @@ -1916,7 +1916,9 @@ struct file_buffer int b_changed; /* 'modified': Set to TRUE if something in the file has been changed and not written out. */ - int b_changedtick; /* incremented for each change, also for undo */ + varnumber_T *b_changedtick; /* points into b:changedtick or b_ct_val; + incremented for each change, also for undo */ + varnumber_T b_ct_val; /* fallback for b:changedtick */ int b_saving; /* Set to TRUE if we are in the middle of saving the buffer. */ |