Fix format
This commit is contained in:
parent
5f77d07760
commit
171820e53f
@ -117,11 +117,11 @@ size_t common_hal_terminalio_terminal_write(terminalio_terminal_obj_t *self, con
|
|||||||
}
|
}
|
||||||
if (c == 'H') {
|
if (c == 'H') {
|
||||||
if (n >= self->tilegrid->height_in_tiles) {
|
if (n >= self->tilegrid->height_in_tiles) {
|
||||||
n = self->tilegrid->height_in_tiles - 1;
|
n = self->tilegrid->height_in_tiles - 1;
|
||||||
}
|
}
|
||||||
if (m >= self->tilegrid->width_in_tiles) {
|
if (m >= self->tilegrid->width_in_tiles) {
|
||||||
m = self->tilegrid->width_in_tiles - 1;
|
m = self->tilegrid->width_in_tiles - 1;
|
||||||
}
|
}
|
||||||
n = (n + self->tilegrid->top_left_y) % self->tilegrid->height_in_tiles;
|
n = (n + self->tilegrid->top_left_y) % self->tilegrid->height_in_tiles;
|
||||||
self->cursor_x = m;
|
self->cursor_x = m;
|
||||||
self->cursor_y = n;
|
self->cursor_y = n;
|
||||||
|
Loading…
Reference in New Issue
Block a user