From 86d640ef71938a621e08461701b20203d37ae2a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sat, 22 Feb 2020 23:06:11 +0100 Subject: [PATCH] sixel: rename: purge_at_cursor() -> delete_at_cursor() --- sixel.c | 4 ++-- sixel.h | 2 +- terminal.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sixel.c b/sixel.c index 19dd6069..24477e3e 100644 --- a/sixel.c +++ b/sixel.c @@ -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, diff --git a/sixel.h b/sixel.h index c5c489af..040df93a 100644 --- a/sixel.h +++ b/sixel.h @@ -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); diff --git a/terminal.c b/terminal.c index 5c7b94e5..aa3dedd3 100644 --- a/terminal.c +++ b/terminal.c @@ -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;