diff options
author | 2019-03-12 20:02:47 +0000 | |
---|---|---|
committer | 2019-03-12 20:02:47 +0000 | |
commit | 5c6c700103c5461c5f4d0a54e30035403322337f (patch) | |
tree | 3d652cb86aa643d80416cb9bdf4921305185c048 /usr.bin/tmux/window-clock.c | |
parent | fix line break (diff) | |
download | wireguard-openbsd-5c6c700103c5461c5f4d0a54e30035403322337f.tar.xz wireguard-openbsd-5c6c700103c5461c5f4d0a54e30035403322337f.zip |
DECRC and DECSC apparently need to preserve origin mode as well, based
on a fix from Marc Reisner.
Diffstat (limited to 'usr.bin/tmux/window-clock.c')
-rw-r--r-- | usr.bin/tmux/window-clock.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/window-clock.c b/usr.bin/tmux/window-clock.c index 6f5cf890d4a..a296db9bfbd 100644 --- a/usr.bin/tmux/window-clock.c +++ b/usr.bin/tmux/window-clock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: window-clock.c,v 1.27 2019/03/12 11:16:50 nicm Exp $ */ +/* $OpenBSD: window-clock.c,v 1.28 2019/03/12 20:02:47 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -238,7 +238,7 @@ window_clock_draw_screen(struct window_mode_entry *wme) if (screen_size_x(s) >= strlen(tim) && screen_size_y(s) != 0) { x = (screen_size_x(s) / 2) - (strlen(tim) / 2); y = screen_size_y(s) / 2; - screen_write_cursormove(&ctx, x, y); + screen_write_cursormove(&ctx, x, y, 0); memcpy(&gc, &grid_default_cell, sizeof gc); gc.flags |= GRID_FLAG_NOPALETTE; @@ -274,7 +274,7 @@ window_clock_draw_screen(struct window_mode_entry *wme) for (j = 0; j < 5; j++) { for (i = 0; i < 5; i++) { - screen_write_cursormove(&ctx, x + i, y + j); + screen_write_cursormove(&ctx, x + i, y + j, 0); if (window_clock_table[idx][j][i]) screen_write_putc(&ctx, &gc, ' '); } |