Fix #296
This commit is contained in:
@@ -41,12 +41,13 @@ window.ensure = function(self)
|
||||
for _, name in ipairs({ 'buf', 'sbuf1', 'subf2' }) do
|
||||
if not (self[name] and vim.api.nvim_buf_is_valid(self[name])) then
|
||||
self[name] = vim.api.nvim_create_buf(false, true)
|
||||
end
|
||||
-- We always apply options to the buffer to support session related plugins.
|
||||
vim.api.nvim_buf_set_option(self[name], 'undolevels', -1)
|
||||
vim.api.nvim_buf_set_option(self[name], 'buftype', 'nofile')
|
||||
vim.api.nvim_buf_set_option(self[name], 'bufhidden', 'hide')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
---Set window option.
|
||||
---NOTE: If the window already visible, immediately applied to it.
|
||||
|
||||
Reference in New Issue
Block a user