diff options
| author | bfredl <bjorn.linse@gmail.com> | 2022-11-26 18:58:45 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-26 18:58:45 +0100 |
| commit | 019c8805e514428c0b999583f5aec8c9f4eb96d0 (patch) | |
| tree | 1a105862628c997b46725b4f3f485bd074332cce /src/nvim/change.c | |
| parent | 319fbffc94896dd9cf0a77891d69b7fcada1fad4 (diff) | |
| parent | bd22585061b66d7f71d4832b4a81e950b3c9d19d (diff) | |
| download | rneovim-019c8805e514428c0b999583f5aec8c9f4eb96d0.tar.gz rneovim-019c8805e514428c0b999583f5aec8c9f4eb96d0.tar.bz2 rneovim-019c8805e514428c0b999583f5aec8c9f4eb96d0.zip | |
Merge pull request #20196 from dundargoc/refactor/char_u/14
refactor: replace char_u with char 14: remove `STRLEN` part final
Diffstat (limited to 'src/nvim/change.c')
| -rw-r--r-- | src/nvim/change.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/change.c b/src/nvim/change.c index 461034ba36..d4c94a5b13 100644 --- a/src/nvim/change.c +++ b/src/nvim/change.c @@ -877,7 +877,7 @@ int del_bytes(colnr_T count, bool fixpos_arg, bool use_delcombine) bool was_alloced = ml_line_alloced(); // check if oldp was allocated char *newp; if (was_alloced) { - ml_add_deleted_len((char *)curbuf->b_ml.ml_line_ptr, oldlen); + ml_add_deleted_len(curbuf->b_ml.ml_line_ptr, oldlen); newp = oldp; // use same allocated memory } else { // need to allocate a new line newp = xmalloc((size_t)(oldlen + 1 - count)); |
