From e025530d25cedd1dcbd9d2102cd06296f3707da9 Mon Sep 17 00:00:00 2001 From: Martin Bielik Date: Mon, 20 Mar 2023 18:27:46 +0100 Subject: fixed missing whitespace in chat --- py/chat.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'py') diff --git a/py/chat.py b/py/chat.py index f01276d..7cd7985 100644 --- a/py/chat.py +++ b/py/chat.py @@ -49,6 +49,8 @@ try: text = resp['choices'][0]['delta'].get('content', '') if not text.strip() and not generating_text: continue # trim newlines from the beginning + + generating_text = True vim.command("normal! a" + text) vim.command("redraw") -- cgit v1.2.3