diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2022-12-16 17:33:52 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2022-12-16 17:33:52 +0100 |
commit | 614d382621fa0b9d19287b63edb39b637409c581 (patch) | |
tree | 790a90309b938193330618648f2a50d470927cdc /src/nvim/message.c | |
parent | b55ccb43240c931d1a52a85b02920521a838e0a7 (diff) | |
download | rneovim-614d382621fa0b9d19287b63edb39b637409c581.tar.gz rneovim-614d382621fa0b9d19287b63edb39b637409c581.tar.bz2 rneovim-614d382621fa0b9d19287b63edb39b637409c581.zip |
refactor: rename mch_msg => os_msg
Diffstat (limited to 'src/nvim/message.c')
-rw-r--r-- | src/nvim/message.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c index 81adca8b1c..041e5ed6c3 100644 --- a/src/nvim/message.c +++ b/src/nvim/message.c @@ -214,7 +214,7 @@ void msg_grid_validate(void) } /// Displays the string 's' on the status line -/// When terminal not initialized (yet) mch_errmsg(..) is used. +/// When terminal not initialized (yet) os_errmsg(..) is used. /// /// @return true if wait_return() not called int msg(char *s) @@ -764,7 +764,7 @@ static bool emsg_multiline(const char *s, bool multiline) /// emsg() - display an error message /// /// Rings the bell, if appropriate, and calls message() to do the real work -/// When terminal not initialized (yet) mch_errmsg(..) is used. +/// When terminal not initialized (yet) os_errmsg(..) is used. /// /// @return true if wait_return() not called bool emsg(const char *s) @@ -2726,9 +2726,9 @@ static void msg_puts_printf(const char *str, const ptrdiff_t maxlen) memcpy(p, s, (size_t)len); *(p + len) = '\0'; if (info_message) { - mch_msg(buf); + os_msg(buf); } else { - mch_errmsg(buf); + os_errmsg(buf); } } @@ -3003,7 +3003,7 @@ static int do_more_prompt(int typed_char) } #if defined(MSWIN) -void mch_errmsg(char *str) +void os_errmsg(char *str) { assert(str != NULL); wchar_t *utf16str; @@ -3017,7 +3017,7 @@ void mch_errmsg(char *str) } /// Give a message. To be used when the UI is not initialized yet. -void mch_msg(char *str) +void os_msg(char *str) { assert(str != NULL); wchar_t *utf16str; |