diff options
author | nicm <nicm> | 2020-05-16 16:22:01 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-05-16 16:22:01 +0000 |
commit | ecbdcc256fd2c69c60c9d900a28922914d6b9896 (patch) | |
tree | b0aebdfbfee142db0ae36e929659a229c671582c /grid.c | |
parent | 303d342d5fa5903983c08e4cae429e4f9480eea3 (diff) | |
download | rtmux-ecbdcc256fd2c69c60c9d900a28922914d6b9896.tar.gz rtmux-ecbdcc256fd2c69c60c9d900a28922914d6b9896.tar.bz2 rtmux-ecbdcc256fd2c69c60c9d900a28922914d6b9896.zip |
Add screen write flags instead of individual bits and fix line length
calculation with padding.
Diffstat (limited to 'grid.c')
-rw-r--r-- | grid.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1391,7 +1391,9 @@ grid_line_length(struct grid *gd, u_int py) px = gd->sx; while (px > 0) { grid_get_cell(gd, px - 1, py, &gc); - if (gc.data.size != 1 || *gc.data.data != ' ') + if ((gc.flags & GRID_FLAG_PADDING) || + gc.data.size != 1 || + *gc.data.data != ' ') break; px--; } |