buffer: Bind b:changedtick to b:['changedtick'], remove special cases

This commit is contained in:
ZyX
2017-02-15 02:00:45 +03:00
parent 0eab7ac4b9
commit 4f10d42f82
11 changed files with 115 additions and 113 deletions

View File

@@ -577,8 +577,8 @@ void getout(int exitval)
if (buf->b_changedtick != -1) {
apply_autocmds(EVENT_BUFWINLEAVE, buf->b_fname,
buf->b_fname, FALSE, buf);
buf->b_changedtick = -1; /* note that we did it already */
/* start all over, autocommands may mess up the lists */
buf_set_changedtick(buf, -1); // note that we did it already
// start all over, autocommands may mess up the lists
next_tp = first_tabpage;
break;
}