mirror of
https://github.com/tmux/tmux.git
synced 2024-12-13 18:38:48 +00:00
A screen can be one cell wide; don't crash if that is the case.
This commit is contained in:
parent
9f6d685c05
commit
5d7bff4051
@ -427,8 +427,8 @@ screen_write_initctx(
|
||||
return;
|
||||
|
||||
/* Save the last cell on the screen. */
|
||||
gc = NULL;
|
||||
for (xx = 1; xx < screen_size_x(s); xx++) {
|
||||
gc = &grid_default_cell;
|
||||
for (xx = 1; xx <= screen_size_x(s); xx++) {
|
||||
gc = grid_view_peek_cell(gd, screen_size_x(s) - xx, s->cy);
|
||||
if (!(gc->flags & GRID_FLAG_PADDING))
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user