diff options
author | ii14 <59243201+ii14@users.noreply.github.com> | 2023-05-16 05:33:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-16 11:33:03 +0800 |
commit | d36dd2bae8e899b40cc21603e600a5046213bc36 (patch) | |
tree | ca7689e0415f3d0d8199eb89a9578a48e069981c /src/nvim/undo.c | |
parent | 66b7f62542de0c9910f0e701a4c51834cfea3bab (diff) | |
download | rneovim-d36dd2bae8e899b40cc21603e600a5046213bc36.tar.gz rneovim-d36dd2bae8e899b40cc21603e600a5046213bc36.tar.bz2 rneovim-d36dd2bae8e899b40cc21603e600a5046213bc36.zip |
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>
Diffstat (limited to 'src/nvim/undo.c')
-rw-r--r-- | src/nvim/undo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/undo.c b/src/nvim/undo.c index 35f46e512d..00a3922a5b 100644 --- a/src/nvim/undo.c +++ b/src/nvim/undo.c @@ -2667,7 +2667,7 @@ void ex_undolist(exarg_T *eap) undo_fmt_time(IObuff + strlen(IObuff), IOSIZE - strlen(IObuff), uhp->uh_time); if (uhp->uh_save_nr > 0) { while (strlen(IObuff) < 33) { - STRCAT(IObuff, " "); + xstrlcat(IObuff, " ", IOSIZE); } vim_snprintf_add(IObuff, IOSIZE, " %3ld", uhp->uh_save_nr); } |