aboutsummaryrefslogtreecommitdiff
path: root/screen-redraw.c
diff options
context:
space:
mode:
Diffstat (limited to 'screen-redraw.c')
-rw-r--r--screen-redraw.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/screen-redraw.c b/screen-redraw.c
index ae9d8a90..002970e9 100644
--- a/screen-redraw.c
+++ b/screen-redraw.c
@@ -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, '*');