aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/message.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2024-02-09 11:42:40 +0100
committerbfredl <bjorn.linse@gmail.com>2024-02-09 15:11:21 +0100
commite0e5b7f0ba1b0440bdc2b557e2b2cfae24706cbd (patch)
treee323ac2fd3a1dc9619265f7daa069ba9a66d8f2b /src/nvim/message.c
parent4788abf2da6bb5c37e880d74a73a4a7de736b6ac (diff)
downloadrneovim-e0e5b7f0ba1b0440bdc2b557e2b2cfae24706cbd.tar.gz
rneovim-e0e5b7f0ba1b0440bdc2b557e2b2cfae24706cbd.tar.bz2
rneovim-e0e5b7f0ba1b0440bdc2b557e2b2cfae24706cbd.zip
refactor(api): make cstr_as_string accept "const char*"
In the context a String inside an Object/Dictionary etc is consumed, it is considered to be read-only.
Diffstat (limited to 'src/nvim/message.c')
-rw-r--r--src/nvim/message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c
index cb89d34e23..991ed65ffe 100644
--- a/src/nvim/message.c
+++ b/src/nvim/message.c
@@ -3017,7 +3017,7 @@ void msg_ext_ui_flush(void)
msg_ext_emit_chunk();
if (msg_ext_chunks.size > 0) {
- ui_call_msg_show(cstr_as_string((char *)msg_ext_kind),
+ ui_call_msg_show(cstr_as_string(msg_ext_kind),
msg_ext_chunks, msg_ext_overwrite);
if (!msg_ext_overwrite) {
msg_ext_visible++;