mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
sixel: overwrite: pass 'width' to sixel_overwrite_at_cursor()
This is necessary to handle multi-column characters correctly.
This commit is contained in:
parent
5158be86d2
commit
4006fc86e4
3 changed files with 4 additions and 4 deletions
4
sixel.c
4
sixel.c
|
|
@ -440,10 +440,10 @@ sixel_overwrite_by_row(struct terminal *term, int row, int col, int width)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
sixel_overwrite_at_cursor(struct terminal *term)
|
sixel_overwrite_at_cursor(struct terminal *term, int width)
|
||||||
{
|
{
|
||||||
sixel_overwrite_by_row(
|
sixel_overwrite_by_row(
|
||||||
term, term->grid->cursor.point.row, term->grid->cursor.point.col, 1);
|
term, term->grid->cursor.point.row, term->grid->cursor.point.col, width);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
2
sixel.h
2
sixel.h
|
|
@ -32,7 +32,7 @@ void sixel_delete_at_row(struct terminal *term, int row);
|
||||||
void sixel_overwrite_by_rectangle(
|
void sixel_overwrite_by_rectangle(
|
||||||
struct terminal *term, int row, int col, int height, int width);
|
struct terminal *term, int row, int col, int height, int width);
|
||||||
void sixel_overwrite_by_row(struct terminal *term, int row, int col, int width);
|
void sixel_overwrite_by_row(struct terminal *term, int row, int col, int width);
|
||||||
void sixel_overwrite_at_cursor(struct terminal *term);
|
void sixel_overwrite_at_cursor(struct terminal *term, int width);
|
||||||
|
|
||||||
void sixel_colors_report_current(struct terminal *term);
|
void sixel_colors_report_current(struct terminal *term);
|
||||||
void sixel_colors_reset(struct terminal *term);
|
void sixel_colors_reset(struct terminal *term);
|
||||||
|
|
|
||||||
|
|
@ -2384,7 +2384,7 @@ term_print(struct terminal *term, wchar_t wc, int width)
|
||||||
print_linewrap(term);
|
print_linewrap(term);
|
||||||
print_insert(term, width);
|
print_insert(term, width);
|
||||||
|
|
||||||
sixel_overwrite_at_cursor(term);
|
sixel_overwrite_at_cursor(term, width);
|
||||||
|
|
||||||
/* *Must* get current cell *after* linewrap+insert */
|
/* *Must* get current cell *after* linewrap+insert */
|
||||||
struct row *row = term->grid->cur_row;
|
struct row *row = term->grid->cur_row;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue