summaryrefslogtreecommitdiff
path: root/py/complete.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--py/complete.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/py/complete.py b/py/complete.py
index 40f6efb..bddd8e6 100644
--- a/py/complete.py
+++ b/py/complete.py
@@ -4,13 +4,13 @@ import openai
plugin_root = vim.eval("s:plugin_root")
vim.command(f"py3file {plugin_root}/py/utils.py")
-prompt = vim.eval("prompt")
+prompt = vim.eval("prompt").strip()
request_options = make_request_options()
openai.api_key = load_api_key()
try:
- if prompt.strip():
+ if prompt:
print('Completing...')
vim.command("redraw")