aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer_defs.h
diff options
context:
space:
mode:
authorPeter Hodge <peter.hodge84@gmail.com>2018-01-26 20:36:11 +0100
committerKillTheMule <KillTheMule@users.noreply.github.com>2018-05-23 22:07:27 +0200
commitedcc73e766438facc88db19000f054aa52ab8b13 (patch)
tree17a62cbbb7785e6f88aaa99728cfa0d8cd5e076c /src/nvim/buffer_defs.h
parent418abfc9d06923e96f1317419fe83ed4e6d67c1d (diff)
downloadrneovim-edcc73e766438facc88db19000f054aa52ab8b13.tar.gz
rneovim-edcc73e766438facc88db19000f054aa52ab8b13.tar.bz2
rneovim-edcc73e766438facc88db19000f054aa52ab8b13.zip
API: Implement buffer updates
Originally written by @phodge in https://github.com/neovim/neovim/pull/5269.
Diffstat (limited to 'src/nvim/buffer_defs.h')
-rw-r--r--src/nvim/buffer_defs.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nvim/buffer_defs.h b/src/nvim/buffer_defs.h
index 807baf02c1..9f6ac15308 100644
--- a/src/nvim/buffer_defs.h
+++ b/src/nvim/buffer_defs.h
@@ -38,6 +38,8 @@ typedef struct {
#include "nvim/api/private/defs.h"
// for Map(K, V)
#include "nvim/map.h"
+// for kvec
+#include "nvim/lib/kvec.h"
#define MODIFIABLE(buf) (buf->b_p_ma)
@@ -771,6 +773,10 @@ struct file_buffer {
BufhlInfo b_bufhl_info; // buffer stored highlights
kvec_t(BufhlLine *) b_bufhl_move_space; // temporary space for highlights
+
+ // array of channelids which have asked to receive live updates for this
+ // buffer.
+ kvec_t(uint64_t) liveupdate_channels;
};
/*