diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-05-05 18:42:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-05 18:42:00 +0200 |
commit | d4f47fe17d5168304b73df26a5d8fe3b11832128 (patch) | |
tree | de2c438ed9b0936795ae4f99e9a6e4df2c6ffe2f /src/nvim/undo.c | |
parent | 3e3e9c31255cd5c01bce96c68e5b1cf8e26a9f4d (diff) | |
parent | 9a671e6a24243a5ff2879599d91ab5aec8b4e77d (diff) | |
download | rneovim-d4f47fe17d5168304b73df26a5d8fe3b11832128.tar.gz rneovim-d4f47fe17d5168304b73df26a5d8fe3b11832128.tar.bz2 rneovim-d4f47fe17d5168304b73df26a5d8fe3b11832128.zip |
Merge pull request #18416 from dundargoc/refactor/remove-char_u
refactor/remove char u
Diffstat (limited to 'src/nvim/undo.c')
-rw-r--r-- | src/nvim/undo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/undo.c b/src/nvim/undo.c index 007febee66..937e86b161 100644 --- a/src/nvim/undo.c +++ b/src/nvim/undo.c @@ -2395,9 +2395,9 @@ static void u_undoredo(int undo, bool do_buf_event) * should get rid of, by replacing it with the new line */ if (empty_buffer && lnum == 0) { - ml_replace((linenr_T)1, uep->ue_array[i], true); + ml_replace((linenr_T)1, (char *)uep->ue_array[i], true); } else { - ml_append(lnum, uep->ue_array[i], (colnr_T)0, false); + ml_append(lnum, (char *)uep->ue_array[i], (colnr_T)0, false); } xfree(uep->ue_array[i]); } @@ -3108,7 +3108,7 @@ void u_undoline(void) } oldp = u_save_line(curbuf->b_u_line_lnum); - ml_replace(curbuf->b_u_line_lnum, curbuf->b_u_line_ptr, true); + ml_replace(curbuf->b_u_line_lnum, (char *)curbuf->b_u_line_ptr, true); changed_bytes(curbuf->b_u_line_lnum, 0); extmark_splice_cols(curbuf, (int)curbuf->b_u_line_lnum - 1, 0, (colnr_T)STRLEN(oldp), (colnr_T)STRLEN(curbuf->b_u_line_ptr), kExtmarkUndo); |