aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer_defs.h
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2017-02-06 10:20:49 -0500
committerGitHub <noreply@github.com>2017-02-06 10:20:49 -0500
commit11efbc80e328d6e92bdb1cdcf6aeac98050c2077 (patch)
treeffd45f3dab501339999687416c8a3a1e577d899f /src/nvim/buffer_defs.h
parenta767fee8cd0e6874e528d88f5a8dcf70259dabdd (diff)
parentb0cf071d437699b9b89e3735b3df41914f302eb1 (diff)
downloadrneovim-11efbc80e328d6e92bdb1cdcf6aeac98050c2077.tar.gz
rneovim-11efbc80e328d6e92bdb1cdcf6aeac98050c2077.tar.bz2
rneovim-11efbc80e328d6e92bdb1cdcf6aeac98050c2077.zip
Merge pull request #5913 from mhinz/buf-lookup-patches
vim-patch:7.4.2017,7.4.2018,7.4.2021,7.4.2022,7.4.2023,7.4.2024
Diffstat (limited to 'src/nvim/buffer_defs.h')
-rw-r--r--src/nvim/buffer_defs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h
index 29f4dfe4fb..73d06de964 100644
--- a/src/nvim/buffer_defs.h
+++ b/src/nvim/buffer_defs.h
@@ -8,6 +8,13 @@
typedef struct file_buffer buf_T; // Forward declaration
+// Reference to a buffer that stores the value of buf_free_count.
+// bufref_valid() only needs to check "buf" when the count differs.
+typedef struct {
+ buf_T *br_buf;
+ int br_buf_free_count;
+} bufref_T;
+
// for garray_T
#include "nvim/garray.h"
// for pos_T, lpos_T and linenr_T