* Revert "make completion popup windows have bufhidden=wipe (#886)"
This reverts commit f573479528.
* Remove redundant nvim_buf_set_option
`buftype=nofile` and `bufhidden=hide` are already set by
`nvim_create_buf(false, true)`.
This commit is contained in:
@@ -20,8 +20,6 @@ buffer.ensure = function(name)
|
|||||||
if not buf then
|
if not buf then
|
||||||
created_new = true
|
created_new = true
|
||||||
buf = vim.api.nvim_create_buf(false, true)
|
buf = vim.api.nvim_create_buf(false, true)
|
||||||
vim.api.nvim_buf_set_option(buf, 'buftype', 'nofile')
|
|
||||||
vim.api.nvim_buf_set_option(buf, 'bufhidden', 'wipe')
|
|
||||||
buffer.cache[name] = buf
|
buffer.cache[name] = buf
|
||||||
end
|
end
|
||||||
return buf, created_new
|
return buf, created_new
|
||||||
|
|||||||
Reference in New Issue
Block a user