diff options
| author | Martin Bielik <mx.bielik@gmail.com> | 2024-06-06 18:44:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-06 18:44:28 +0200 |
| commit | 056c464a841f54f0d96443d8ac1f1d1826b9b198 (patch) | |
| tree | 75606598c28e6c19c4bbc65adf58022ef59b9272 /py/utils.py | |
| parent | 437d4e68fd58ca2abb2e8323522f6e4c5fec3198 (diff) | |
| parent | f76aa3fdc4ac5f46145db8937bf10c04fa7c97dc (diff) | |
| download | vim-ai-056c464a841f54f0d96443d8ac1f1d1826b9b198.tar.gz | |
Merge pull request #108 from misterbuckley/fix-print-info-message
Fix print_info_message <Esc> issue
Diffstat (limited to 'py/utils.py')
| -rw-r--r-- | py/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/utils.py b/py/utils.py index 963377d..d1f960b 100644 --- a/py/utils.py +++ b/py/utils.py @@ -231,7 +231,7 @@ def openai_request(url, data, options): def print_info_message(msg): vim.command("redraw") - vim.command("normal \\<Esc>") + vim.command('call feedkeys("\<Esc>")') vim.command("echohl ErrorMsg") vim.command(f"echomsg '{msg}'") vim.command("echohl None") |