diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-02-11 11:05:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-11 11:05:57 +0100 |
commit | 4be6c6cf0ddf5e31d4103cb5df06651ba6f4897b (patch) | |
tree | 70f45c47ebd0d29ae8060c39cce39b853edf3760 /src/nvim/textformat.c | |
parent | ee87b848a2dc7ca3d3cfb871afcd351274f612dc (diff) | |
download | rneovim-4be6c6cf0ddf5e31d4103cb5df06651ba6f4897b.tar.gz rneovim-4be6c6cf0ddf5e31d4103cb5df06651ba6f4897b.tar.bz2 rneovim-4be6c6cf0ddf5e31d4103cb5df06651ba6f4897b.zip |
refactor: replace char_u with char (#21901)
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/textformat.c')
-rw-r--r-- | src/nvim/textformat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/textformat.c b/src/nvim/textformat.c index e30580a748..69cc0e046b 100644 --- a/src/nvim/textformat.c +++ b/src/nvim/textformat.c @@ -72,7 +72,7 @@ bool has_format_option(int x) void internal_format(int textwidth, int second_indent, int flags, bool format_only, int c) { int cc; - int save_char = NUL; + char save_char = NUL; bool haveto_redraw = false; const bool fo_ins_blank = has_format_option(FO_INS_BLANK); const bool fo_multibyte = has_format_option(FO_MBYTE_BREAK); @@ -93,7 +93,7 @@ void internal_format(int textwidth, int second_indent, int flags, bool format_on && !(State & VREPLACE_FLAG)) { cc = gchar_cursor(); if (ascii_iswhite(cc)) { - save_char = cc; + save_char = (char)cc; pchar_cursor('x'); } } @@ -458,7 +458,7 @@ void internal_format(int textwidth, int second_indent, int flags, bool format_on } if (save_char != NUL) { // put back space after cursor - pchar_cursor((char_u)save_char); + pchar_cursor(save_char); } curwin->w_p_lbr = has_lbr; |