Fixed a bug in displaying error messages.

This commit is contained in:
Holger Rapp 2014-02-13 21:24:16 +01:00
parent ad6e8ed21e
commit 808cb08540

View File

@ -104,7 +104,7 @@ def new_scratch_buffer(text):
vim.command("set ft=") vim.command("set ft=")
vim.command("set buftype=nofile") vim.command("set buftype=nofile")
vim.current.buffer[:] = text.splitlines() vim.buffers[len(vim.buffers)-1][:] = text.splitlines()
feedkeys(r"\<Esc>") feedkeys(r"\<Esc>")