From 808cb0854056f239336c3c32eaf307c4d764c24b Mon Sep 17 00:00:00 2001 From: Holger Rapp Date: Thu, 13 Feb 2014 21:24:16 +0100 Subject: [PATCH] Fixed a bug in displaying error messages. --- 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 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"\")