aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/message.c
diff options
context:
space:
mode:
authorDundar Goc <gocdundar@gmail.com>2022-05-08 14:43:16 +0200
committerDundar Goc <gocdundar@gmail.com>2022-05-11 23:19:57 +0200
commit85aae12a6dea48621ea2d24a946b3e7b86f9014d (patch)
treed9d45a2bdde3b462f58d98b88694bad0183c2b16 /src/nvim/message.c
parent5359be78935dc639c481d74f010fe133dd40290c (diff)
downloadrneovim-85aae12a6dea48621ea2d24a946b3e7b86f9014d.tar.gz
rneovim-85aae12a6dea48621ea2d24a946b3e7b86f9014d.tar.bz2
rneovim-85aae12a6dea48621ea2d24a946b3e7b86f9014d.zip
refactor: replace char_u variables and functions with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/message.c')
-rw-r--r--src/nvim/message.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c
index 8f093a12ed..29473ac2b6 100644
--- a/src/nvim/message.c
+++ b/src/nvim/message.c
@@ -586,7 +586,7 @@ void msg_source(int attr)
if (sourcing_name == NULL) {
last_sourcing_name = NULL;
} else {
- last_sourcing_name = vim_strsave(sourcing_name);
+ last_sourcing_name = vim_strsave((char_u *)sourcing_name);
}
}
--no_wait_return;
@@ -2418,7 +2418,7 @@ void msg_reset_scroll(void)
static void inc_msg_scrolled(void)
{
if (*get_vim_var_str(VV_SCROLLSTART) == NUL) {
- char *p = (char *)sourcing_name;
+ char *p = sourcing_name;
char *tofree = NULL;
// v:scrollstart is empty, set it to the script/function name and line