From f0859313b6b96149fd7f355f9bb6c32c842cff17 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 8 Mar 2020 11:48:56 +0100 Subject: ... --- notmuch-tcp-server | 3 +++ 1 file changed, 3 insertions(+) (limited to 'notmuch-tcp-server') diff --git a/notmuch-tcp-server b/notmuch-tcp-server index 328b72c..50ac8be 100644 --- a/notmuch-tcp-server +++ b/notmuch-tcp-server @@ -75,6 +75,9 @@ with s as sock: buffer.seek(0) start_index = 0 for line in buffer: + if not line.find(b"\n"): + break + start_index += len(line) escaped_args = line[:-1].decode() break -- cgit v1.2.3