revert: "refactor: use S_LEN macro" (#29319)

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

This reverts commit c37695a5d5.
This commit is contained in:
Lewis Russell
2024-06-13 22:20:06 +01:00
committed by GitHub
parent 6589d05894
commit 43d8435cf8
42 changed files with 258 additions and 263 deletions

View File

@@ -566,7 +566,7 @@ void AppendToRedobuffLit(const char *str, int len)
// CTRL-V '0' must be inserted as CTRL-V 048.
if (*s == NUL && c == '0') {
add_buff(&redobuff, S_LEN("048"));
add_buff(&redobuff, "048", 3);
} else {
add_char_buff(&redobuff, c);
}
@@ -777,7 +777,7 @@ int start_redo(int count, bool old_redo)
// copy the buffer name, if present
if (c == '"') {
add_buff(&readbuf2, S_LEN("\""));
add_buff(&readbuf2, "\"", 1);
c = read_redo(false, old_redo);
// if a numbered buffer is used, increment the number