mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 22:48:34 +00:00
refactor: use xstrl{cpy,cat} on IObuff (#23648)
Replace usage of STR{CPY,CAT} with xstrl{cpy,cat} when using on IObuff Co-authored-by: ii14 <ii14@users.noreply.github.com>
This commit is contained in:
@@ -641,9 +641,10 @@ void ex_history(exarg_T *eap)
|
||||
}
|
||||
|
||||
for (; !got_int && histype1 <= histype2; histype1++) {
|
||||
STRCPY(IObuff, "\n # ");
|
||||
xstrlcpy(IObuff, "\n # ", IOSIZE);
|
||||
assert(history_names[histype1] != NULL);
|
||||
STRCAT(STRCAT(IObuff, history_names[histype1]), " history");
|
||||
xstrlcat(IObuff, history_names[histype1], IOSIZE);
|
||||
xstrlcat(IObuff, " history", IOSIZE);
|
||||
msg_puts_title(IObuff);
|
||||
int idx = hisidx[histype1];
|
||||
histentry_T *hist = history[histype1];
|
||||
@@ -669,7 +670,7 @@ void ex_history(exarg_T *eap)
|
||||
trunc_string(hist[i].hisstr, IObuff + strlen(IObuff),
|
||||
Columns - 10, IOSIZE - (int)strlen(IObuff));
|
||||
} else {
|
||||
STRCAT(IObuff, hist[i].hisstr);
|
||||
xstrlcat(IObuff, hist[i].hisstr, IOSIZE);
|
||||
}
|
||||
msg_outtrans(IObuff);
|
||||
}
|
||||
|
Reference in New Issue
Block a user