diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2018-08-21 21:12:01 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2018-08-27 11:51:52 +0200 |
commit | 03978a0f296aa8638a578698ea0a6cceedb34527 (patch) | |
tree | f04a06422d5f9e51077aa7e95bfea247eb813ac1 /src/nvim/ex_getln.c | |
parent | a8b4d76a0a2c59a3a368932ae111265c15b8dccb (diff) | |
download | rneovim-03978a0f296aa8638a578698ea0a6cceedb34527.tar.gz rneovim-03978a0f296aa8638a578698ea0a6cceedb34527.tar.bz2 rneovim-03978a0f296aa8638a578698ea0a6cceedb34527.zip |
ext_cmdline: use new highlight representation for cmdline_block
Make sure cmdline updates will receive highlight specifications the same
way as screen cells. This is controlled by the ext_newgrid option so
nothing is changed by default (as screen cells are also not changed by
default). This was already done for the cmdline itself in #8221, this
extends it to cmdline_block. Which currently doesn't store highlights,
but the placeholder should be one that makes sense for future use.
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r-- | src/nvim/ex_getln.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index da1681520b..df4adef15f 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -2990,7 +2990,7 @@ void ui_ext_cmdline_block_append(int indent, const char *line) memcpy(buf + indent, line, strlen(line)); // -V575 Array item = ARRAY_DICT_INIT; - ADD(item, DICTIONARY_OBJ((Dictionary)ARRAY_DICT_INIT)); + ADD(item, INTEGER_OBJ(0)); ADD(item, STRING_OBJ(cstr_as_string(buf))); Array content = ARRAY_DICT_INIT; ADD(content, ARRAY_OBJ(item)); |