aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/change.c
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2024-06-11 10:25:32 +0200
committerbfredl <bjorn.linse@gmail.com>2024-06-11 14:53:52 +0200
commitbbd2f340a2895ed59785f952b2585e6590602cad (patch)
treebf73f1cd76fde557a2353acfecdc385e66ee2103 /src/nvim/change.c
parentd8e384b7bfd5829e5ff5006202faa584b3211e84 (diff)
downloadrneovim-bbd2f340a2895ed59785f952b2585e6590602cad.tar.gz
rneovim-bbd2f340a2895ed59785f952b2585e6590602cad.tar.bz2
rneovim-bbd2f340a2895ed59785f952b2585e6590602cad.zip
refactor(memory): use builtin strcat() instead of STRCAT()
The latter was mostly relevant with the past char_u madness. NOTE: STRCAT also functioned as a counterfeit "NOLINT" for clint apparently. But NOLINT-ing every usecase is just the same as disabling the check entirely.
Diffstat (limited to 'src/nvim/change.c')
-rw-r--r--src/nvim/change.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/change.c b/src/nvim/change.c
index 05772d39e9..6c979df1fe 100644
--- a/src/nvim/change.c
+++ b/src/nvim/change.c
@@ -1723,12 +1723,12 @@ bool open_line(int dir, int flags, int second_line_indent, bool *did_do_comment)
// Below, set_indent(newindent, SIN_INSERT) will insert the
// whitespace needed before the comment char.
for (int i = 0; i < padding; i++) {
- STRCAT(leader, " ");
+ strcat(leader, " ");
less_cols--;
newcol++;
}
}
- STRCAT(leader, p_extra);
+ strcat(leader, p_extra);
p_extra = leader;
did_ai = true; // So truncating blanks works with comments
less_cols -= lead_len;