diff options
| author | BonaBeavis <gordian.dziwis@gmail.com> | 2023-05-04 20:22:40 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-04 20:22:40 +0200 |
| commit | bd512e69c87a44f091b00fd12a4a044fdf6e3330 (patch) | |
| tree | 4d23faf53388f104c741dc46702da3efc9ccb46a /py/utils.py | |
| parent | 38225a94fc393a4d4e98c48d1a09168b67d7d3ff (diff) | |
| download | vim-ai-bd512e69c87a44f091b00fd12a4a044fdf6e3330.tar.gz | |
Allow single undo
Fixes https://github.com/madox2/vim-ai/issues/14
Diffstat (limited to 'py/utils.py')
| -rw-r--r-- | py/utils.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/py/utils.py b/py/utils.py index dc86f34..01315ef 100644 --- a/py/utils.py +++ b/py/utils.py @@ -44,6 +44,7 @@ def render_text_chunks(chunks): continue # trim newlines from the beginning generating_text = True vim.command("normal! a" + text) + vim.command("undojoin") vim.command("redraw") full_text += text if not full_text.strip(): |