refactor: replace char_u variables and functions with char

Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
Dundar Goc
2022-05-05 13:36:14 +02:00
parent dbdd58e548
commit e31b32a293
65 changed files with 758 additions and 756 deletions

View File

@@ -4,8 +4,8 @@
#include <stdbool.h>
#include "nvim/ascii.h"
#include "nvim/grid_defs.h"
#include "nvim/buffer_defs.h"
#include "nvim/grid_defs.h"
/// By default, all windows are drawn on a single rectangular grid, represented by
/// this ScreenGrid instance. In multigrid mode each window will have its own
@@ -34,7 +34,7 @@ static inline void schar_from_ascii(char_u *p, const char c)
/// Put a unicode character in a screen cell.
static inline int schar_from_char(char_u *p, int c)
{
int len = utf_char2bytes(c, p);
int len = utf_char2bytes(c, (char *)p);
p[len] = NUL;
return len;
}