diff options
author | bfredl <bjorn.linse@gmail.com> | 2022-08-25 22:35:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-25 22:35:20 +0200 |
commit | 6e9980fc3b6f8e246632aef0f4b8c0edf30e24f0 (patch) | |
tree | 163d6c0553e6c9f7a91d7d0d97e369722dca75be /src/nvim/mbyte.c | |
parent | bfd1adc62c615e7b65bdfe6d3c21158708eb4314 (diff) | |
parent | 40855b0143a864739a6037921e15699445dcf8a7 (diff) | |
download | rneovim-6e9980fc3b6f8e246632aef0f4b8c0edf30e24f0.tar.gz rneovim-6e9980fc3b6f8e246632aef0f4b8c0edf30e24f0.tar.bz2 rneovim-6e9980fc3b6f8e246632aef0f4b8c0edf30e24f0.zip |
Merge pull request #19628 from dundargoc/refactor/char_u/2
refactor: replace char_u with char
Diffstat (limited to 'src/nvim/mbyte.c')
-rw-r--r-- | src/nvim/mbyte.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/mbyte.c b/src/nvim/mbyte.c index f9d8422481..83044f209a 100644 --- a/src/nvim/mbyte.c +++ b/src/nvim/mbyte.c @@ -1932,11 +1932,11 @@ void utf_find_illegal(void) char_u *tofree = NULL; vimconv.vc_type = CONV_NONE; - if (enc_canon_props(curbuf->b_p_fenc) & ENC_8BIT) { + if (enc_canon_props((char_u *)curbuf->b_p_fenc) & ENC_8BIT) { // 'encoding' is "utf-8" but we are editing a 8-bit encoded file, // possibly a utf-8 file with illegal bytes. Setup for conversion // from utf-8 to 'fileencoding'. - convert_setup(&vimconv, p_enc, curbuf->b_p_fenc); + convert_setup(&vimconv, p_enc, (char_u *)curbuf->b_p_fenc); } curwin->w_cursor.coladd = 0; |