diff options
author | nicm <nicm> | 2020-04-18 09:00:31 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-04-18 09:00:31 +0000 |
commit | c87595326c69b3a82175268136f901199ff3cead (patch) | |
tree | e5a84eb0e1475aeb23e6a1541ff596d041eb3de3 | |
parent | b0a37e7514f2e08a9a8315cc68add4f0a53ed2af (diff) | |
download | rtmux-c87595326c69b3a82175268136f901199ff3cead.tar.gz rtmux-c87595326c69b3a82175268136f901199ff3cead.tar.bz2 rtmux-c87595326c69b3a82175268136f901199ff3cead.zip |
Use peek line function instead of hoking in the array directly.
-rw-r--r-- | format.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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++; |