From 4f10d42f829da51cd79ff756ac4db96a6532dbac Mon Sep 17 00:00:00 2001 From: ZyX Date: Wed, 15 Feb 2017 02:00:45 +0300 Subject: buffer: Bind b:changedtick to b:['changedtick'], remove special cases --- src/nvim/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nvim/main.c') diff --git a/src/nvim/main.c b/src/nvim/main.c index fab968836c..f962a82a74 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -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; } -- cgit From 9c1865c7f8e4a21e4e52cf90e686a155c3031ee5 Mon Sep 17 00:00:00 2001 From: ZyX Date: Thu, 23 Feb 2017 01:38:54 +0300 Subject: *: Fix linter errors --- src/nvim/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/main.c') diff --git a/src/nvim/main.c b/src/nvim/main.c index f962a82a74..d7baa7acfa 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -576,7 +576,7 @@ void getout(int exitval) buf_T *buf = wp->w_buffer; if (buf->b_changedtick != -1) { apply_autocmds(EVENT_BUFWINLEAVE, buf->b_fname, - buf->b_fname, FALSE, buf); + buf->b_fname, false, buf); buf_set_changedtick(buf, -1); // note that we did it already // start all over, autocommands may mess up the lists next_tp = first_tabpage; -- cgit