aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-12-26 13:35:18 +0000
committerDaniel Eklöf <daniel@ekloef.se>2024-03-07 15:24:32 +0000
commite6c372b14fa76799ea3c3ff89258a1b905cc9ec0 (patch)
treed5e0c5a7019fec219a9c7b0f5fb4617e55f0ac33 /terminal.c
parentterm: add term_put_char() (diff)
term: print: spacers may be printed all the way up to the last column
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/terminal.c b/terminal.c
index 6119f68c..f814de97 100644
--- a/terminal.c
+++ b/terminal.c
@@ -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);
}