Revert to the old way of making scratch buffers. Less flaky.
This commit is contained in:
parent
5aca4a6952
commit
b438af2653
@ -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>")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user