summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/format-draw.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2019-07-06 20:37:30 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2019-07-06 20:37:30 +0000
commit2e1a07913df741c1c4eac7d855bf0b1171e0b436 (patch)
tree6b4e1d19109f193bb350da6654c11d0b166e5b29 /usr.bin/tmux/format-draw.c
parentc5f00d188007091e9949c91576f891a658e44ad9 (diff)
Correctly clear underscore colour in grid_get_cell1, also fix struct
grid_cell to avoid padding. Fixes increased memory use reported by Suraj N Kurapati.
Diffstat (limited to 'usr.bin/tmux/format-draw.c')
-rw-r--r--usr.bin/tmux/format-draw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/format-draw.c b/usr.bin/tmux/format-draw.c
index c74f2841a99..d1023deb1c3 100644
--- a/usr.bin/tmux/format-draw.c
+++ b/usr.bin/tmux/format-draw.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: format-draw.c,v 1.11 2019/07/01 06:56:00 nicm Exp $ */
+/* $OpenBSD: format-draw.c,v 1.12 2019/07/06 20:37:29 nicm Exp $ */
/*
* Copyright (c) 2019 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -565,7 +565,7 @@ format_draw(struct screen_write_ctx *octx, const struct grid_cell *base,
cp++;
}
- /* Draw the cell to th current screen. */
+ /* Draw the cell to the current screen. */
screen_write_cell(&ctx[current], &sy.gc);
width[current] += ud->width;
continue;