diff options
| author | Martin Bielik <mx.bielik@gmail.com> | 2023-04-04 21:15:20 +0200 |
|---|---|---|
| committer | Martin Bielik <mx.bielik@gmail.com> | 2023-04-04 21:15:20 +0200 |
| commit | e7cdbfb658e903452232f15c4f355bdefcbeacd9 (patch) | |
| tree | ec529563e15bb987ff2c044078a7114fd8d47b19 /py/complete.py | |
| parent | c1868ed4dcbb8acaf637b129f8a0f717a41cf5f2 (diff) | |
| parent | 95d1df263e27a06d3bc6f50f345c79ca0a3cc0b7 (diff) | |
| download | vim-ai-e7cdbfb658e903452232f15c4f355bdefcbeacd9.tar.gz | |
Merge branch 'main' into next
Diffstat (limited to 'py/complete.py')
| -rw-r--r-- | py/complete.py | 4 |
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") |