Merge pull request #18110 from dundargoc/refactor/remove-char_u

refactor: replace char_u variables and functions with char
This commit is contained in:
Gregory Anders
2022-04-24 20:13:23 -06:00
committed by GitHub
8 changed files with 137 additions and 131 deletions

View File

@@ -389,12 +389,12 @@ char *get_exception_string(void *value, except_type_T type, char_u *cmdname, int
mesg = ((struct msglist *)value)->throw_msg;
if (cmdname != NULL && *cmdname != NUL) {
size_t cmdlen = STRLEN(cmdname);
ret = (char *)vim_strnsave((char_u *)"Vim(", 4 + cmdlen + 2 + STRLEN(mesg));
ret = xstrnsave("Vim(", 4 + cmdlen + 2 + STRLEN(mesg));
STRCPY(&ret[4], cmdname);
STRCPY(&ret[4 + cmdlen], "):");
val = ret + 4 + cmdlen + 2;
} else {
ret = (char *)vim_strnsave((char_u *)"Vim:", 4 + STRLEN(mesg));
ret = xstrnsave("Vim:", 4 + STRLEN(mesg));
val = ret + 4;
}