aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-02-22 22:06:11 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-02-22 22:06:11 +0000
commit86d640ef71938a621e08461701b20203d37ae2a9 (patch)
tree2327568744151a7d208ccf7a5b134477b33b314f
parentMerge branch 'sixel-graphics' (diff)
sixel: rename: purge_at_cursor() -> delete_at_cursor()
-rw-r--r--sixel.c4
-rw-r--r--sixel.h2
-rw-r--r--terminal.c2
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;