aboutsummaryrefslogtreecommitdiff
path: root/url-mode.c
diff options
context:
space:
mode:
Diffstat (limited to 'url-mode.c')
-rw-r--r--url-mode.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/url-mode.c b/url-mode.c
index 94c05b3a..524b8d1b 100644
--- a/url-mode.c
+++ b/url-mode.c
@@ -654,6 +654,11 @@ tag_cells_for_url(struct terminal *term, const struct url *url, bool value)
c = 0;
row = term->grid->rows[r];
+ if (row == NULL) {
+ /* Un-allocated scrollback. This most likely means a
+ * runaway OSC-8 URL. */
+ break;
+ }
row->dirty = true;
}
}