term: print: erase URI range when printing right-margin padding

This commit is contained in:
Daniel Eklöf 2021-11-21 14:14:08 +01:00
parent 3c6239c66f
commit 65944906bf
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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);