diff --git a/pythonx/UltiSnips/_vim.py b/pythonx/UltiSnips/_vim.py index fa39d19..579de1d 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.buffers[len(vim.buffers)-1][:] = text.splitlines() + vim.current.buffer[:] = text.splitlines() feedkeys(r"\")