aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/shell.c
diff options
context:
space:
mode:
authorDundar Goc <gocdundar@gmail.com>2022-05-04 18:27:22 +0200
committerDundar Goc <gocdundar@gmail.com>2022-05-05 18:10:46 +0200
commit9a671e6a24243a5ff2879599d91ab5aec8b4e77d (patch)
tree703693c3591ed6b8881ed965f7f2ed2394a29ce6 /src/nvim/os/shell.c
parent82c7a82c3585100e73e154c49e3e002b7dc35437 (diff)
downloadrneovim-9a671e6a24243a5ff2879599d91ab5aec8b4e77d.tar.gz
rneovim-9a671e6a24243a5ff2879599d91ab5aec8b4e77d.tar.bz2
rneovim-9a671e6a24243a5ff2879599d91ab5aec8b4e77d.zip
refactor: replace char_u variables and functions with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/os/shell.c')
-rw-r--r--src/nvim/os/shell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/os/shell.c b/src/nvim/os/shell.c
index 57cf4a44f5..2c1e492dbe 100644
--- a/src/nvim/os/shell.c
+++ b/src/nvim/os/shell.c
@@ -1253,7 +1253,7 @@ static size_t write_output(char *output, size_t remaining, bool eof)
if (output[off] == NL) {
// Insert the line
output[off] = NUL;
- ml_append(curwin->w_cursor.lnum++, (char_u *)output, (int)off + 1,
+ ml_append(curwin->w_cursor.lnum++, output, (int)off + 1,
false);
size_t skip = off + 1;
output += skip;
@@ -1272,7 +1272,7 @@ static size_t write_output(char *output, size_t remaining, bool eof)
if (eof) {
if (remaining) {
// append unfinished line
- ml_append(curwin->w_cursor.lnum++, (char_u *)output, 0, false);
+ ml_append(curwin->w_cursor.lnum++, output, 0, false);
// remember that the NL was missing
curbuf->b_no_eol_lnum = curwin->w_cursor.lnum;
output += remaining;