sixel: rename: purge_at_cursor() -> delete_at_cursor()

This commit is contained in:
Daniel Eklöf 2020-02-22 23:06:11 +01:00
parent 3a24777e45
commit 86d640ef71
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 4 additions and 4 deletions

View file

@ -53,7 +53,7 @@ sixel_destroy(struct sixel *sixel)
}
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;
@ -74,7 +74,7 @@ sixel_unhook(struct terminal *term)
free(term->sixel.palette);
term->sixel.palette = NULL;
sixel_purge_at_cursor(term);
sixel_delete_at_cursor(term);
struct sixel image = {
.data = term->sixel.image.data,

View file

@ -9,7 +9,7 @@ void sixel_put(struct terminal *term, uint8_t c);
void sixel_unhook(struct terminal *term);
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_reset(struct terminal *term);

View file

@ -2128,7 +2128,7 @@ term_print(struct terminal *term, wchar_t wc, int width)
print_linewrap(term);
print_insert(term, width);
sixel_purge_at_cursor(term);
sixel_delete_at_cursor(term);
/* *Must* get current cell *after* linewrap+insert */
struct row *row = term->grid->cur_row;