summaryrefslogtreecommitdiffstats
path: root/src/fileio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 73baecc037..2001c0d9a5 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -4924,11 +4924,11 @@ restore_backup:
{
unchanged(buf, TRUE);
#ifdef FEAT_AUTOCMD
- /* buf->b_changedtick is always incremented in unchanged() but that
+ /* 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 == CHANGEDTICK(buf)
&& last_changedtick_buf == buf)
- last_changedtick = *buf->b_changedtick;
+ last_changedtick = CHANGEDTICK(buf);
#endif
u_unchanged(buf);
u_update_save_nr(buf);