aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index ec951f9b..c7a99e85 100644
--- a/main.c
+++ b/main.c
@@ -89,7 +89,8 @@ grid_render_update(struct context *c, struct buffer *buf, const struct damage *d
col = dmg->range.start % cols;
linear_cursor < dmg->range.start + dmg->range.length;
linear_cursor++,
- col = (col + 1) % cols,
+ //col = (col + 1) % cols,
+ col = col + 1 >= c->term.grid.cols ? 0 : col + 1,
row += col == 0 ? 1 : 0)
{
//LOG_DBG("UPDATE: %d (%dx%d)", linear_cursor, row, col);