aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/private/helpers.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-06-10 11:23:17 +0200
committerbfredl <bjorn.linse@gmail.com>2022-06-11 22:29:51 +0200
commitf4121c52b95d4b79c0de95412c8447614a2f8960 (patch)
tree5f235062bb5f0d0729787ad263b292f40f51f355 /src/nvim/api/private/helpers.c
parentc87a5ebbc31c56867f9d6f6d27bb8b7ddecc837e (diff)
downloadrneovim-f4121c52b95d4b79c0de95412c8447614a2f8960.tar.gz
rneovim-f4121c52b95d4b79c0de95412c8447614a2f8960.tar.bz2
rneovim-f4121c52b95d4b79c0de95412c8447614a2f8960.zip
fix(messages): add color when showing nvim_echo in :messages history
Diffstat (limited to 'src/nvim/api/private/helpers.c')
-rw-r--r--src/nvim/api/private/helpers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/api/private/helpers.c b/src/nvim/api/private/helpers.c
index 1ddaf63743..bdbbe9aa88 100644
--- a/src/nvim/api/private/helpers.c
+++ b/src/nvim/api/private/helpers.c
@@ -1344,8 +1344,8 @@ HlMessage parse_hl_msg(Array chunks, Error *err)
return hl_msg;
free_exit:
- clear_hl_msg(&hl_msg);
- return hl_msg;
+ hl_msg_free(hl_msg);
+ return (HlMessage)KV_INITIAL_VALUE;
}
bool api_dict_to_keydict(void *rv, field_hash hashy, Dictionary dict, Error *err)