mirror of
https://github.com/neovim/neovim.git
synced 2025-09-19 01:38:16 +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:
@@ -1084,11 +1084,11 @@ char *do_bufdel(int command, char *arg, int addr_count, int start_bnr, int end_b
|
||||
|
||||
if (deleted == 0) {
|
||||
if (command == DOBUF_UNLOAD) {
|
||||
STRCPY(IObuff, _("E515: No buffers were unloaded"));
|
||||
xstrlcpy(IObuff, _("E515: No buffers were unloaded"), IOSIZE);
|
||||
} else if (command == DOBUF_DEL) {
|
||||
STRCPY(IObuff, _("E516: No buffers were deleted"));
|
||||
xstrlcpy(IObuff, _("E516: No buffers were deleted"), IOSIZE);
|
||||
} else {
|
||||
STRCPY(IObuff, _("E517: No buffers were wiped out"));
|
||||
xstrlcpy(IObuff, _("E517: No buffers were wiped out"), IOSIZE);
|
||||
}
|
||||
errormsg = IObuff;
|
||||
} else if (deleted >= p_report) {
|
||||
|
Reference in New Issue
Block a user