summaryrefslogtreecommitdiff
path: root/src/osc
diff options
context:
space:
mode:
Diffstat (limited to 'src/osc')
-rw-r--r--src/osc/dispatch.c12
-rw-r--r--src/osc/osc.h3
2 files changed, 1 insertions, 14 deletions
diff --git a/src/osc/dispatch.c b/src/osc/dispatch.c
index 74863ed..400adbf 100644
--- a/src/osc/dispatch.c
+++ b/src/osc/dispatch.c
@@ -20,16 +20,6 @@ char *term_osc_tail(struct term *t)
return (t->osc_heap ? t->osc_heap : t->osc_buf) + t->osc_len;
}
-void term_osc_commit(struct term *t, size_t n)
-{
- t->osc_len += (int)n;
-}
-
-char *term_osc_data(struct term *t)
-{
- return t->osc_heap ? t->osc_heap : t->osc_buf;
-}
-
bool term_osc_grow(struct term *t)
{
if (!t->osc_heap) {
@@ -151,7 +141,7 @@ static void osc104_handle(struct term *t, const char *params)
void term_osc_finish(struct term *t)
{
if (!term_str_was_truncated(t)) {
- char *buf = term_osc_data(t);
+ char *buf = t->osc_heap ? t->osc_heap : t->osc_buf;
buf[t->osc_len] = '\0';
if (!t->alternate && t->osc_len >= 5 && !strncmp(buf, "133;", 4) &&
diff --git a/src/osc/osc.h b/src/osc/osc.h
index 1398534..1d6680e 100644
--- a/src/osc/osc.h
+++ b/src/osc/osc.h
@@ -11,11 +11,8 @@ struct term;
size_t term_osc_room(const struct term *t);
char *term_osc_tail(struct term *t);
-void term_osc_commit(struct term *t, size_t n);
bool term_osc_grow(struct term *t);
-char *term_osc_data(struct term *t);
-
void term_osc_finish(struct term *t);
void term_osc_cleanup(struct term *t);