From b9f6523209b80ce22948c67573b678a6c121978d Mon Sep 17 00:00:00 2001 From: Saul Pwanson Date: Sun, 26 Nov 2023 23:35:34 -0800 Subject: [PATCH] [server-] add final newline after draw results --- visidata/features/command_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/visidata/features/command_server.py b/visidata/features/command_server.py index 6f12a0b77..8e65983e0 100644 --- a/visidata/features/command_server.py +++ b/visidata/features/command_server.py @@ -51,7 +51,7 @@ def command_server(vd, conn): line = line.decode().strip() if line == 'draw': r = '\n'.join(json.dumps(d) for d in vd.sheet.capture_draw_object()) - conn.send(r.encode('utf-8')) + conn.send(r.encode('utf-8')+'\n') elif line.startswith('{'): cmd = json.loads(line) vd.queueCommand(**cmd)