From b438af2653c3026f22ec8d3e557b89d91b0f6c78 Mon Sep 17 00:00:00 2001 From: Holger Rapp Date: Fri, 14 Feb 2014 08:29:07 +0100 Subject: [PATCH] Revert to the old way of making scratch buffers. Less flaky. --- pythonx/UltiSnips/_vim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"\")