aboutsummaryrefslogtreecommitdiff
path: root/format.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2020-04-18 12:01:31 +0100
committerThomas Adam <thomas@xteddy.org>2020-04-18 12:01:31 +0100
commitd55510ebc8b44fa8784fd6257831c82841afd52f (patch)
tree2ffb54ad25c7b736fef6fd7d5f84a4b838995a50 /format.c
parent94c90385d2e728a4d37a25ce78b55b2ffeb429f9 (diff)
parentc87595326c69b3a82175268136f901199ff3cead (diff)
downloadrtmux-d55510ebc8b44fa8784fd6257831c82841afd52f.tar.gz
rtmux-d55510ebc8b44fa8784fd6257831c82841afd52f.tar.bz2
rtmux-d55510ebc8b44fa8784fd6257831c82841afd52f.zip
Merge branch 'obsd-master'
Diffstat (limited to 'format.c')
-rw-r--r--format.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/format.c b/format.c
index 7e28fc01..ab3bc458 100644
--- a/format.c
+++ b/format.c
@@ -977,7 +977,7 @@ format_grid_word(struct grid *gd, u_int x, u_int y)
if (x == 0) {
if (y == 0)
break;
- gl = &gd->linedata[y - 1];
+ gl = grid_peek_line(gd, y - 1);
if (~gl->flags & GRID_LINE_WRAPPED)
break;
y--;
@@ -993,7 +993,7 @@ format_grid_word(struct grid *gd, u_int x, u_int y)
if (end == 0 || x == end - 1) {
if (y == gd->hsize + gd->sy - 1)
break;
- gl = &gd->linedata[y];
+ gl = grid_peek_line(gd, y);
if (~gl->flags & GRID_LINE_WRAPPED)
break;
y++;