Skip to content

Commit

Permalink
fix: wipe buffers on close
Browse files Browse the repository at this point in the history
  • Loading branch information
tjdevries committed Mar 10, 2021
1 parent 5cecbb3 commit 8f2babd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/plenary/window/border.lua
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ function Border:new(content_bufnr, content_win_id, content_win_options, border_w

obj.bufnr = vim.api.nvim_create_buf(false, true)
assert(obj.bufnr, "Failed to create border buffer")
vim.api.nvim_buf_set_option(obj.bufnr, "bufhidden", "wipe")

obj.contents = Border._create_lines(content_win_options, border_win_options)
vim.api.nvim_buf_set_lines(obj.bufnr, 0, -1, false, obj.contents)
Expand Down

0 comments on commit 8f2babd

Please sign in to comment.