aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/terminal.c
diff options
context:
space:
mode:
authorJames <89495599+IAKOBVS@users.noreply.github.com>2024-06-11 22:40:24 +0700
committerGitHub <noreply@github.com>2024-06-11 16:40:24 +0100
commitc37695a5d5f2e8914fff86f3581bed70b4c85d3c (patch)
tree89c5f523768f3fe31a938e497fb7ff9657049e4b /src/nvim/terminal.c
parent44410d063ad23544f87d1c8a553de336ae7939d8 (diff)
downloadrneovim-c37695a5d5f2e8914fff86f3581bed70b4c85d3c.tar.gz
rneovim-c37695a5d5f2e8914fff86f3581bed70b4c85d3c.tar.bz2
rneovim-c37695a5d5f2e8914fff86f3581bed70b4c85d3c.zip
refactor: use S_LEN(s) instead of s, n (#29219)
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 2738eb874d..027ff79696 100644
--- a/src/nvim/terminal.c
+++ b/src/nvim/terminal.c
@@ -833,9 +833,9 @@ void terminal_paste(int count, char **y_array, size_t y_size)
if (j) {
// terminate the previous line
#ifdef MSWIN
- terminal_send(curbuf->terminal, "\r\n", 2);
+ terminal_send(curbuf->terminal, S_LEN("\r\n"));
#else
- terminal_send(curbuf->terminal, "\n", 1);
+ terminal_send(curbuf->terminal, S_LEN("\n"));
#endif
}
size_t len = strlen(y_array[j]);