Revert to the old way of making scratch buffers. Less flaky.

This commit is contained in:
Holger Rapp 2014-02-14 08:29:07 +01:00
parent 5aca4a6952
commit b438af2653

View File

@ -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"\<Esc>")