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/ex_cmds2.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/ex_cmds2.c')
-rw-r--r-- | src/nvim/ex_cmds2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c index 41512205dc..dbdfc2b18a 100644 --- a/src/nvim/ex_cmds2.c +++ b/src/nvim/ex_cmds2.c @@ -543,7 +543,7 @@ void ex_listdo(exarg_T *eap) if (curwin->w_arg_idx != i || !editing_arg_idx(curwin)) { // Clear 'shm' to avoid that the file message overwrites // any output from the command. - p_shm_save = (char *)vim_strsave(p_shm); + p_shm_save = xstrdup(p_shm); set_option_value_give_err("shm", 0L, "", 0); do_argfile(eap, i); set_option_value_give_err("shm", 0L, p_shm_save, 0); @@ -612,7 +612,7 @@ void ex_listdo(exarg_T *eap) // Go to the next buffer. Clear 'shm' to avoid that the file // message overwrites any output from the command. - p_shm_save = (char *)vim_strsave(p_shm); + p_shm_save = xstrdup(p_shm); set_option_value_give_err("shm", 0L, "", 0); goto_buffer(eap, DOBUF_FIRST, FORWARD, next_fnum); set_option_value_give_err("shm", 0L, p_shm_save, 0); @@ -635,7 +635,7 @@ void ex_listdo(exarg_T *eap) // Clear 'shm' to avoid that the file message overwrites // any output from the command. - p_shm_save = (char *)vim_strsave(p_shm); + p_shm_save = xstrdup(p_shm); set_option_value_give_err("shm", 0L, "", 0); ex_cnext(eap); set_option_value_give_err("shm", 0L, p_shm_save, 0); |