diff options
Diffstat (limited to '')
| -rw-r--r-- | py/utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/py/utils.py b/py/utils.py index 604494c..c2a1a63 100644 --- a/py/utils.py +++ b/py/utils.py @@ -241,9 +241,10 @@ def openai_request(url, data, options): yield openai_obj def print_info_message(msg): + escaped_msg = msg.replace("'", "`") vim.command("redraw") vim.command("echohl ErrorMsg") - vim.command(f"echomsg '{msg}'") + vim.command(f"echomsg '{escaped_msg}'") vim.command("echohl None") def parse_error_message(error): |