diff --git a/pythonx/UltiSnips/_vim.py b/pythonx/UltiSnips/_vim.py index 579de1d..fa39d19 100755 --- a/pythonx/UltiSnips/_vim.py +++ b/pythonx/UltiSnips/_vim.py @@ -104,7 +104,7 @@ def new_scratch_buffer(text): vim.command("set ft=") vim.command("set buftype=nofile") - vim.current.buffer[:] = text.splitlines() + vim.buffers[len(vim.buffers)-1][:] = text.splitlines() feedkeys(r"\")