From 65944906bf87bf7ea6c404526fa3f3f88f96194a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sun, 21 Nov 2021 14:14:08 +0100 Subject: [PATCH] term: print: erase URI range when printing right-margin padding --- terminal.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/terminal.c b/terminal.c index 1da97335..21733cf5 100644 --- a/terminal.c +++ b/terminal.c @@ -3193,6 +3193,9 @@ term_print(struct terminal *term, wchar_t wc, int width) for (size_t i = col; i < term->cols; i++) print_spacer(term, i, 0); + if (grid->cur_row->extra != NULL) + grid_row_uri_range_erase(grid->cur_row, col, term->cols - 1); + /* And force a line-wrap */ grid->cursor.lcf = 1; print_linewrap(term);