term: print: spacers may be printed all the way up to the last column

This commit is contained in:
Daniel Eklöf 2021-12-26 14:35:18 +01:00
parent ea851962c1
commit e6c372b14f
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -3602,7 +3602,7 @@ term_print(struct terminal *term, char32_t wc, int width)
grid_row_uri_range_erase(row, col, col + width - 1);
/* Advance cursor the 'additional' columns while dirty:ing the cells */
for (int i = 1; i < width && col < term->cols - 1; i++) {
for (int i = 1; i < width && col < term->cols; i++) {
col++;
print_spacer(term, col, width - i);
}