diff options
author | Dundar Goc <gocdundar@gmail.com> | 2022-05-05 13:36:14 +0200 |
---|---|---|
committer | Dundar Goc <gocdundar@gmail.com> | 2022-05-09 10:03:29 +0200 |
commit | e31b32a293f6ba8708499a176234f8be1df6a145 (patch) | |
tree | 87e129c92affece6421d4585b5d5c20996891ec5 /src/nvim/grid.h | |
parent | dbdd58e548fcf55848359b696275fd848756db7b (diff) | |
download | rneovim-e31b32a293f6ba8708499a176234f8be1df6a145.tar.gz rneovim-e31b32a293f6ba8708499a176234f8be1df6a145.tar.bz2 rneovim-e31b32a293f6ba8708499a176234f8be1df6a145.zip |
refactor: replace char_u variables and functions with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/grid.h')
-rw-r--r-- | src/nvim/grid.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/grid.h b/src/nvim/grid.h index 12a5bf95bb..c38748940d 100644 --- a/src/nvim/grid.h +++ b/src/nvim/grid.h @@ -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; } |