aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/term.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/term.c')
-rw-r--r--src/nvim/term.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nvim/term.c b/src/nvim/term.c
index a1e13cfeb7..2dc4d68b19 100644
--- a/src/nvim/term.c
+++ b/src/nvim/term.c
@@ -1817,6 +1817,12 @@ void term_write(char_u *s, size_t len)
static char_u out_buf[OUT_SIZE + 1];
static int out_pos = 0; /* number of chars in out_buf */
+// Clear the output buffer
+void out_buf_clear(void)
+{
+ out_pos = 0;
+}
+
/*
* out_flush(): flush the output buffer
*/