aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/terminal.c
diff options
context:
space:
mode:
authorDundar Göc <gocdundar@gmail.com>2022-08-26 23:11:25 +0200
committerdundargoc <gocdundar@gmail.com>2022-09-11 13:28:59 +0200
commit3ff46544c9872b4161fd098569c30b55fe3abd36 (patch)
tree589b9ebdd86fde7e200b6235596ce6feac976122 /src/nvim/terminal.c
parent4638fcf4fb688fa548b8ce337ec3b7c1327fbfe9 (diff)
downloadrneovim-3ff46544c9872b4161fd098569c30b55fe3abd36.tar.gz
rneovim-3ff46544c9872b4161fd098569c30b55fe3abd36.tar.bz2
rneovim-3ff46544c9872b4161fd098569c30b55fe3abd36.zip
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/terminal.c')
-rw-r--r--src/nvim/terminal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/terminal.c b/src/nvim/terminal.c
index 46f141492b..326c868be8 100644
--- a/src/nvim/terminal.c
+++ b/src/nvim/terminal.c
@@ -693,7 +693,7 @@ void terminal_paste(long count, char **y_array, size_t y_size)
return;
}
vterm_keyboard_start_paste(curbuf->terminal->vt);
- size_t buff_len = STRLEN(y_array[0]);
+ size_t buff_len = strlen(y_array[0]);
char_u *buff = xmalloc(buff_len);
for (int i = 0; i < count; i++) { // -V756
// feed the lines to the terminal
@@ -702,7 +702,7 @@ void terminal_paste(long count, char **y_array, size_t y_size)
// terminate the previous line
terminal_send(curbuf->terminal, "\n", 1);
}
- size_t len = STRLEN(y_array[j]);
+ size_t len = strlen(y_array[j]);
if (len > buff_len) {
buff = xrealloc(buff, len);
buff_len = len;