summaryrefslogtreecommitdiffstats
path: root/format-draw.c
diff options
context:
space:
mode:
authornicm <nicm>2020-05-16 16:26:34 +0000
committernicm <nicm>2020-05-16 16:26:34 +0000
commite2a26740b9880d0066c8a04ca2d7202e7f99bd07 (patch)
tree25ac0b2a7174e24b1e9df539b58aa21d98f3d65d /format-draw.c
parentecbdcc256fd2c69c60c9d900a28922914d6b9896 (diff)
Add an option to set the pane border lines style from a choice of single
lines (ACS or UTF-8), double or heavy (UTF-8), simple (plain ASCII) or number (the pane numbers). Lines that won't work on a non-UTF-8 terminal are translated back into ACS when they are output.
Diffstat (limited to 'format-draw.c')
-rw-r--r--format-draw.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/format-draw.c b/format-draw.c
index bd32b2a8..ec98ba95 100644
--- a/format-draw.c
+++ b/format-draw.c
@@ -600,7 +600,8 @@ format_draw(struct screen_write_ctx *octx, const struct grid_cell *base,
/* If this style pushed or popped the default, update it. */
if (sy.default_type == STYLE_DEFAULT_PUSH) {
- memcpy(&current_default, &saved_sy.gc, sizeof current_default);
+ memcpy(&current_default, &saved_sy.gc,
+ sizeof current_default);
sy.default_type = STYLE_DEFAULT_BASE;
} else if (sy.default_type == STYLE_DEFAULT_POP) {
memcpy(&current_default, base, sizeof current_default);