From f4121c52b95d4b79c0de95412c8447614a2f8960 Mon Sep 17 00:00:00 2001 From: bfredl Date: Fri, 10 Jun 2022 11:23:17 +0200 Subject: fix(messages): add color when showing nvim_echo in :messages history --- src/nvim/api/private/helpers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nvim/api/private/helpers.c') 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) -- cgit