From 24ebd3c309c5d6cad63bbf1b40de8c17aead0366 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 19 Feb 2025 23:06:02 +0100 Subject: Add state marshalling and unmarshalling functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libterminput_read_bracketed_paste__.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libterminput_read_bracketed_paste__.c') diff --git a/libterminput_read_bracketed_paste__.c b/libterminput_read_bracketed_paste__.c index 02fecc5..b580b70 100644 --- a/libterminput_read_bracketed_paste__.c +++ b/libterminput_read_bracketed_paste__.c @@ -87,11 +87,11 @@ libterminput_read_bracketed_paste__(int fd, union libterminput_input *input, str * end marker, output that we do not have any complete input, * and pause as the available buffered input is incomplete */ if (input->text.nbytes < 6U) { - input->text.type = LIBTERMINPUT_NONE; memcpy(ctx->stored, input->text.bytes, input->text.nbytes); ctx->stored_tail = 0; ctx->stored_head = input->text.nbytes; ctx->paused = 1; + NOTHING(input); return 1; } -- cgit v1.2.3-70-g09d2