From 51fc54325c55eb3cefafec627d73cc19c220d7ed Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Tue, 31 Oct 2017 16:46:02 +0100 Subject: ui: implement ext_messages Co-Author: Dongdong Zhou --- src/nvim/api/ui.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/nvim/api/ui.c') diff --git a/src/nvim/api/ui.c b/src/nvim/api/ui.c index 91009c950f..9e9be588e3 100644 --- a/src/nvim/api/ui.c +++ b/src/nvim/api/ui.c @@ -132,6 +132,13 @@ void nvim_ui_attach(uint64_t channel_id, Integer width, Integer height, ui->ui_ext[kUILinegrid] = true; } + if (ui->ui_ext[kUIMessages]) { + // This uses attribute indicies, so ext_linegrid is needed. + ui->ui_ext[kUILinegrid] = true; + // Cmdline uses the messages area, so it should be externalized too. + ui->ui_ext[kUICmdline] = true; + } + UIData *data = xmalloc(sizeof(UIData)); data->channel_id = channel_id; data->buffer = (Array)ARRAY_DICT_INIT; -- cgit