Thomas Adam
unread,Feb 4, 2022, 6:52:00 AM2/4/22Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to tmux-...@googlegroups.com
Hello,
I was just looking at the pane-border-indicator setting, with the 'arrows'
options and noticed that despite valid UTF-8 characters being drawn for
pane-border-lines, the arrows only showed correctly when pane-border-lines was
set to 'single'.
Setting pane-border-lines to 'double', for example, rendered the lines in
UTF-8, but made the arrow indicators render using ACS equivalents.
I believe the following patch should fix this.
Kindly,
Thomas
diff --git a/screen-redraw.c b/screen-redraw.c
index 8dd75f40c..ef79d9aaa 100644
--- a/screen-redraw.c
+++ b/screen-redraw.c
@@ -727,8 +727,10 @@ screen_redraw_draw_borders_cell(struct screen_redraw_ctx *ctx, u_int i, u_int j)
border == SCREEN_REDRAW_BORDER_RIGHT) ||
(cell_type == CELL_RIGHTJOIN &&
border == SCREEN_REDRAW_BORDER_LEFT)))) &&
- screen_redraw_check_is(x, y, pane_status, active))
+ screen_redraw_check_is(x, y, pane_status, active)) {
+ gc.attr |= GRID_ATTR_CHARSET;
utf8_set(&gc.data, BORDER_MARKERS[border]);
+ }
}
tty_cell(tty, &gc, &grid_default_cell, NULL);