diff options
Diffstat (limited to 'src/osc/dispatch.c')
| -rw-r--r-- | src/osc/dispatch.c | 12 |
1 files changed, 1 insertions, 11 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) && |
