fixup: apply the change on more files

This commit is contained in:
James Tirta Halim
2024-06-03 11:10:30 +07:00
committed by Lewis Russell
parent 4b3845be2e
commit 200e7ad157
19 changed files with 45 additions and 45 deletions

View File

@@ -104,12 +104,12 @@ void ex_trust(exarg_T *eap)
action = "deny";
} else if (strcmp(arg1, "++remove") == 0) {
action = "remove";
} else if (*arg1 != '\0') {
} else if (*arg1 != NUL) {
semsg(e_invarg2, arg1);
goto theend;
}
if (path[0] == '\0') {
if (path[0] == NUL) {
path = NULL;
}

View File

@@ -279,7 +279,7 @@ static const char *input_cb(void *payload, uint32_t byte_index, TSPoint position
memcpy(buf, line + position.column, tocopy);
// Translate embedded \n to NUL
memchrsub(buf, '\n', '\0', tocopy);
memchrsub(buf, '\n', NUL, tocopy);
*bytes_read = (uint32_t)tocopy;
if (tocopy < BUFSIZE) {
// now add the final \n. If it didn't fit, input_cb will be called again