refactor: use S_LEN(s) instead of s, n (#29219)

This commit is contained in:
James
2024-06-11 22:40:24 +07:00
committed by GitHub
parent 44410d063a
commit c37695a5d5
42 changed files with 263 additions and 258 deletions

View File

@@ -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]);