mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-18 06:46:23 -04:00
sixel: rename: purge_at_cursor() -> delete_at_cursor()
This commit is contained in:
parent
3a24777e45
commit
86d640ef71
3 changed files with 4 additions and 4 deletions
4
sixel.c
4
sixel.c
|
|
@ -53,7 +53,7 @@ sixel_destroy(struct sixel *sixel)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
sixel_purge_at_cursor(struct terminal *term)
|
sixel_delete_at_cursor(struct terminal *term)
|
||||||
{
|
{
|
||||||
const int row = term->grid->offset + term->cursor.point.row;
|
const int row = term->grid->offset + term->cursor.point.row;
|
||||||
|
|
||||||
|
|
@ -74,7 +74,7 @@ sixel_unhook(struct terminal *term)
|
||||||
free(term->sixel.palette);
|
free(term->sixel.palette);
|
||||||
term->sixel.palette = NULL;
|
term->sixel.palette = NULL;
|
||||||
|
|
||||||
sixel_purge_at_cursor(term);
|
sixel_delete_at_cursor(term);
|
||||||
|
|
||||||
struct sixel image = {
|
struct sixel image = {
|
||||||
.data = term->sixel.image.data,
|
.data = term->sixel.image.data,
|
||||||
|
|
|
||||||
2
sixel.h
2
sixel.h
|
|
@ -9,7 +9,7 @@ void sixel_put(struct terminal *term, uint8_t c);
|
||||||
void sixel_unhook(struct terminal *term);
|
void sixel_unhook(struct terminal *term);
|
||||||
|
|
||||||
void sixel_destroy(struct sixel *sixel);
|
void sixel_destroy(struct sixel *sixel);
|
||||||
void sixel_purge_at_cursor(struct terminal *term);
|
void sixel_delete_at_cursor(struct terminal *term);
|
||||||
|
|
||||||
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);
|
||||||
|
|
|
||||||
|
|
@ -2128,7 +2128,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_purge_at_cursor(term);
|
sixel_delete_at_cursor(term);
|
||||||
|
|
||||||
/* *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