mirror of
https://github.com/neovim/neovim.git
synced 2024-12-26 14:11:15 -07:00
6091df6b7a
Problem: assertion failure in nvim_create_buf if buflist_new autocommands open a swapfile when "scratch" is set. Solution: block autocommands when setting up the buffer; fire them later instead. Note that, unlike buflist_new, I don't check if autocommands aborted script processing; the buffer is already created and configured at that point, so might as well return the handle anyway. Rather than repeat try_{start,end} and {un}block_autocmds for each relevant operation, just do it at the start and near the end. This means that, if TermResponse fires from unblock_autocmds for whatever reason, it can see the buffer in an already configured state if we didn't bail due to an error (plus it's probably a bit cleaner this way). |
||
---|---|---|
.. | ||
autocmd_spec.lua | ||
buffer_spec.lua | ||
buffer_updates_spec.lua | ||
command_spec.lua | ||
extmark_spec.lua | ||
highlight_spec.lua | ||
keymap_spec.lua | ||
menu_spec.lua | ||
proc_spec.lua | ||
rpc_fixture.lua | ||
server_notifications_spec.lua | ||
server_requests_spec.lua | ||
tabpage_spec.lua | ||
ui_spec.lua | ||
version_spec.lua | ||
vim_spec.lua | ||
window_spec.lua |