summaryrefslogtreecommitdiffstats
path: root/src/globals.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-07-10 19:03:57 +0200
committerBram Moolenaar <Bram@vim.org>2016-07-10 19:03:57 +0200
commit19ff9bf454b7492be64dd87aaf0830fa7961871e (patch)
treec23e21ad26a14e5a3a6f93b6b52daeda08bb2bef /src/globals.h
parent453f37dbfd6f8304a36ea84e40a9965404206186 (diff)
patch 7.4.2021v7.4.2021
Problem: Still too many buf_valid() calls. Solution: Make au_new_curbuf a bufref. Use bufref_valid() in more places.
Diffstat (limited to 'src/globals.h')
-rw-r--r--src/globals.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/globals.h b/src/globals.h
index 879255cd57..566d6e13bb 100644
--- a/src/globals.h
+++ b/src/globals.h
@@ -386,7 +386,7 @@ EXTERN int keep_filetype INIT(= FALSE); /* value for did_filetype when
/* When deleting the current buffer, another one must be loaded. If we know
* which one is preferred, au_new_curbuf is set to it */
-EXTERN buf_T *au_new_curbuf INIT(= NULL);
+EXTERN bufref_T au_new_curbuf INIT(= {NULL});
/* When deleting a buffer/window and autocmd_busy is TRUE, do not free the
* buffer/window. but link it in the list starting with