mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 23:18:33 +00:00
refactor: replace char_u with char 21 (#21779)
refactor: replace char_u with char Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
@@ -140,7 +140,7 @@ void grid_putchar(ScreenGrid *grid, int c, int row, int col, int attr)
|
||||
|
||||
/// get a single character directly from grid.chars into "bytes[]".
|
||||
/// Also return its attribute in *attrp;
|
||||
void grid_getbytes(ScreenGrid *grid, int row, int col, char_u *bytes, int *attrp)
|
||||
void grid_getbytes(ScreenGrid *grid, int row, int col, char *bytes, int *attrp)
|
||||
{
|
||||
size_t off;
|
||||
|
||||
@@ -150,7 +150,7 @@ void grid_getbytes(ScreenGrid *grid, int row, int col, char_u *bytes, int *attrp
|
||||
if (grid->chars != NULL && row < grid->rows && col < grid->cols) {
|
||||
off = grid->line_offset[row] + (size_t)col;
|
||||
*attrp = grid->attrs[off];
|
||||
schar_copy((char *)bytes, grid->chars[off]);
|
||||
schar_copy(bytes, grid->chars[off]);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user