Skip to content

Commit

Permalink
fix: set buftype='' instead of 'nofile' for empty initial buffer (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
willothy authored Dec 11, 2023
1 parent dc88254 commit 25b177d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/resession/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ local function close_everything()
local scratch = vim.api.nvim_create_buf(false, true)
vim.api.nvim_buf_set_option(scratch, "bufhidden", "wipe")
vim.api.nvim_win_set_buf(0, scratch)
vim.api.nvim_buf_set_option(scratch, "buftype", "")
for _, bufnr in ipairs(vim.api.nvim_list_bufs()) do
if vim.bo[bufnr].buflisted then
vim.api.nvim_buf_delete(bufnr, { force = true })
Expand Down

0 comments on commit 25b177d

Please sign in to comment.