summaryrefslogtreecommitdiff
path: root/py/complete.py
diff options
context:
space:
mode:
Diffstat (limited to 'py/complete.py')
-rw-r--r--py/complete.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/py/complete.py b/py/complete.py
index 8386c09..ede0aea 100644
--- a/py/complete.py
+++ b/py/complete.py
@@ -9,6 +9,7 @@ openai_options = make_openai_options(config_options)
http_options = make_http_options(config_options)
prompt = vim.eval("l:prompt").strip()
+is_selection = vim.eval("l:is_selection")
def complete_engine(prompt):
request = {
@@ -51,7 +52,7 @@ try:
print('Completing...')
vim.command("redraw")
text_chunks = engines[engine](prompt)
- render_text_chunks(text_chunks)
+ render_text_chunks(text_chunks, is_selection)
clear_echo_message()
except BaseException as error:
handle_completion_error(error)