summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-02-17 16:31:35 +0100
committerBram Moolenaar <Bram@vim.org>2017-02-17 16:31:35 +0100
commit79518e2ace5fce7b9c49060e462a6e935dba0a84 (patch)
tree5a5b1284386ac2aff2f39f50238327a54b46a7c3 /src/main.c
parent226c53429109f24e31c17016aedfd7fbf7a9aa50 (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/main.c')
-rw-r--r--src/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index 0ed94ae907..ff173af7ef 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1164,13 +1164,13 @@ main_loop(
#ifdef FEAT_AUTOCMD
/* Trigger TextChanged if b_changedtick differs. */
if (!finish_op && has_textchanged()
- && last_changedtick != curbuf->b_changedtick)
+ && last_changedtick != *curbuf->b_changedtick)
{
if (last_changedtick_buf == curbuf)
apply_autocmds(EVENT_TEXTCHANGED, NULL, NULL,
FALSE, curbuf);
last_changedtick_buf = curbuf;
- last_changedtick = curbuf->b_changedtick;
+ last_changedtick = *curbuf->b_changedtick;
}
#endif
@@ -1388,11 +1388,11 @@ getout(int exitval)
/* Autocmd must have close the buffer already, skip. */
continue;
buf = wp->w_buffer;
- if (buf->b_changedtick != -1)
+ if (buf->b_ct_val != -1)
{
apply_autocmds(EVENT_BUFWINLEAVE, buf->b_fname,
buf->b_fname, FALSE, buf);
- buf->b_changedtick = -1; /* note that we did it already */
+ buf->b_ct_val = -1; /* note that we did it already */
/* start all over, autocommands may mess up the lists */
next_tp = first_tabpage;
break;