summaryrefslogtreecommitdiff
path: root/py/chat.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--py/chat.py2
1 files changed, 2 insertions, 0 deletions
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")