From bd512e69c87a44f091b00fd12a4a044fdf6e3330 Mon Sep 17 00:00:00 2001 From: BonaBeavis Date: Thu, 4 May 2023 20:22:40 +0200 Subject: Allow single undo Fixes https://github.com/madox2/vim-ai/issues/14 --- py/utils.py | 1 + 1 file changed, 1 insertion(+) (limited to 'py') 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(): -- cgit v1.2.3