Skip to content

Commit

Permalink
fix: Wipe buffers when we're done with them
Browse files Browse the repository at this point in the history
  • Loading branch information
tjdevries committed Mar 10, 2021
1 parent 7cf8942 commit bc98ca6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/popup/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ function popup.create(what, vim_options)
bufnr = vim.api.nvim_create_buf(false, true)
assert(bufnr, "Failed to create buffer")

vim.api.nvim_buf_set_option(bufnr, "bufhidden", "wipe")

-- TODO: Handle list of lines
if type(what) == 'string' then
what = {what}
Expand Down

0 comments on commit bc98ca6

Please sign in to comment.