Mercurial > vim
diff src/structs.h @ 10889:5780bd3a5a7e v8.0.0334
patch 8.0.0334: can't access b:changedtick from a dict reference
commit https://github.com/vim/vim/commit/79518e2ace5fce7b9c49060e462a6e935dba0a84
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Feb 17 16:31:35 2017 +0100
patch 8.0.0334: can't access b:changedtick from a dict reference
Problem: Can't access b:changedtick from a dict reference.
Solution: Make changedtick a member of the b: dict. (inspired by neovim
#6112)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 17 Feb 2017 16:45:05 +0100 |
parents | c31782d57569 |
children | 835604f3c37a |
line wrap: on
line diff
--- 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. */