diff options
| author | Dundar Goc <gocdundar@gmail.com> | 2022-05-04 18:27:22 +0200 |
|---|---|---|
| committer | Dundar Goc <gocdundar@gmail.com> | 2022-05-05 18:10:46 +0200 |
| commit | 9a671e6a24243a5ff2879599d91ab5aec8b4e77d (patch) | |
| tree | 703693c3591ed6b8881ed965f7f2ed2394a29ce6 /src/nvim/undo.c | |
| parent | 82c7a82c3585100e73e154c49e3e002b7dc35437 (diff) | |
| download | rneovim-9a671e6a24243a5ff2879599d91ab5aec8b4e77d.tar.gz rneovim-9a671e6a24243a5ff2879599d91ab5aec8b4e77d.tar.bz2 rneovim-9a671e6a24243a5ff2879599d91ab5aec8b4e77d.zip | |
refactor: replace char_u variables and functions with char
Work on https://github.com/neovim/neovim/issues/459
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); |