diff options
author | bfredl <bjorn.linse@gmail.com> | 2024-06-11 19:21:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-11 19:21:50 +0200 |
commit | 39d8651283c0458c20b755d2140c8a3cb7b581c5 (patch) | |
tree | e023eb5f914c1928bc885093db9fd6d952c65d7d /src/nvim/ops.c | |
parent | c37695a5d5f2e8914fff86f3581bed70b4c85d3c (diff) | |
parent | bbd2f340a2895ed59785f952b2585e6590602cad (diff) | |
download | rneovim-39d8651283c0458c20b755d2140c8a3cb7b581c5.tar.gz rneovim-39d8651283c0458c20b755d2140c8a3cb7b581c5.tar.bz2 rneovim-39d8651283c0458c20b755d2140c8a3cb7b581c5.zip |
Merge pull request #29278 from bfredl/strcat
refactor(memory): use builtin strcat() instead of STRCAT()
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r-- | src/nvim/ops.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c index 1448896146..8f8baaf619 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -2666,7 +2666,7 @@ static void op_yank_reg(oparg_T *oap, bool message, yankreg_T *reg, bool append) char *pnew = xmalloc(strlen(curr->y_array[curr->y_size - 1]) + strlen(reg->y_array[0]) + 1); STRCPY(pnew, curr->y_array[--j]); - STRCAT(pnew, reg->y_array[0]); + strcat(pnew, reg->y_array[0]); xfree(curr->y_array[j]); xfree(reg->y_array[0]); curr->y_array[j++] = pnew; @@ -3431,7 +3431,7 @@ void do_put(int regname, yankreg_T *reg, int dir, int count, int flags) totlen = strlen(y_array[y_size - 1]); char *newp = xmalloc((size_t)ml_get_len(lnum) - (size_t)col + totlen + 1); STRCPY(newp, y_array[y_size - 1]); - STRCAT(newp, ptr); + strcat(newp, ptr); // insert second line ml_append(lnum, newp, 0, false); new_lnum++; @@ -4747,7 +4747,7 @@ bool do_addsub(int op_type, pos_T *pos, int length, linenr_T Prenum1) } } *ptr = NUL; - STRCAT(buf1, buf2); + strcat(buf1, buf2); ins_str(buf1); // insert the new number endpos = curwin->w_cursor; if (curwin->w_cursor.col) { |