Draw outside correctly with pane numbers.

pull/2219/head
Nicholas Marriott 2020-05-14 16:58:14 +01:00
parent bef70132ac
commit c4d8100b2f
1 changed files with 6 additions and 1 deletions

View File

@ -92,8 +92,13 @@ screen_redraw_border_set(struct window_pane *wp, int pane_lines, int cell_type,
switch (pane_lines) {
case PANE_LINES_NUMBER:
if (cell_type == CELL_OUTSIDE) {
gc->attr |= GRID_ATTR_CHARSET;
utf8_set(&gc->data, CELL_BORDERS[CELL_OUTSIDE]);
break;
}
gc->attr &= ~GRID_ATTR_CHARSET;
if (window_pane_index(wp, &idx) == 0)
if (wp != NULL && window_pane_index(wp, &idx) == 0)
utf8_set(&gc->data, '0' + (idx % 10));
else
utf8_set(&gc->data, '*');