summaryrefslogtreecommitdiff
path: root/py/chat.py
diff options
context:
space:
mode:
authorMartin Bielik <mx.bielik@gmail.com>2023-03-20 18:27:46 +0100
committerMartin Bielik <mx.bielik@gmail.com>2023-03-20 18:27:46 +0100
commite025530d25cedd1dcbd9d2102cd06296f3707da9 (patch)
tree007c343d907de7dd8e6998590cfed79b10bb2f35 /py/chat.py
parenta8087e6f4ff418143eef31d363122242790c9556 (diff)
downloadvim-ai-e025530d25cedd1dcbd9d2102cd06296f3707da9.tar.gz
fixed missing whitespace in chat
Diffstat (limited to 'py/chat.py')
-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")