mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 23:31:51 +00:00
refactor: replace char_u with char 24 (#21823)
refactor: replace char_u with char Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
@@ -540,9 +540,9 @@ static char_u transchar_charbuf[11];
|
||||
/// @param[in] c Character to translate.
|
||||
///
|
||||
/// @return translated character into a static buffer.
|
||||
char_u *transchar(int c)
|
||||
char *transchar(int c)
|
||||
{
|
||||
return transchar_buf(curbuf, c);
|
||||
return (char *)transchar_buf(curbuf, c);
|
||||
}
|
||||
|
||||
char_u *transchar_buf(const buf_T *buf, int c)
|
||||
@@ -584,7 +584,7 @@ char_u *transchar_byte(const int c)
|
||||
transchar_nonprint(curbuf, transchar_charbuf, c);
|
||||
return transchar_charbuf;
|
||||
}
|
||||
return transchar(c);
|
||||
return (char_u *)transchar(c);
|
||||
}
|
||||
|
||||
/// Convert non-printable characters to 2..4 printable ones
|
||||
|
Reference in New Issue
Block a user