diff options
author | Dundar Göc <gocdundar@gmail.com> | 2022-08-26 10:36:35 +0200 |
---|---|---|
committer | Dundar Göc <gocdundar@gmail.com> | 2022-08-26 22:24:28 +0200 |
commit | 395277036014189c03b8969fc0a5cd2bdc5c8631 (patch) | |
tree | 27caaef2e0b8351eb5637d1a969229663ec2c4a8 /src/nvim/message.c | |
parent | 6a13b8fa5460da5aa22a1c366e5252c26ed5fe1e (diff) | |
download | rneovim-395277036014189c03b8969fc0a5cd2bdc5c8631.tar.gz rneovim-395277036014189c03b8969fc0a5cd2bdc5c8631.tar.bz2 rneovim-395277036014189c03b8969fc0a5cd2bdc5c8631.zip |
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/message.c')
-rw-r--r-- | src/nvim/message.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c index aa5e556180..40de8a2bc6 100644 --- a/src/nvim/message.c +++ b/src/nvim/message.c @@ -640,8 +640,8 @@ void msg_source(int attr) /// If "emsg_skip" is set: never do error messages. int emsg_not_now(void) { - if ((emsg_off > 0 && vim_strchr((char *)p_debug, 'm') == NULL - && vim_strchr((char *)p_debug, 't') == NULL) + if ((emsg_off > 0 && vim_strchr(p_debug, 'm') == NULL + && vim_strchr(p_debug, 't') == NULL) || emsg_skip > 0) { return true; } @@ -665,7 +665,7 @@ static bool emsg_multiline(const char *s, bool multiline) bool severe = emsg_severe; emsg_severe = false; - if (!emsg_off || vim_strchr((char *)p_debug, 't') != NULL) { + if (!emsg_off || vim_strchr(p_debug, 't') != NULL) { // Cause a throw of an error exception if appropriate. Don't display // the error message in this case. (If no matching catch clause will // be found, the message will be displayed later on.) "ignore" is set |