Skip to content

Commit bd3dc1c

Browse files
committed
fix: set 'nofile' buftype for multiline input windows (rel #232)
1 parent 2218737 commit bd3dc1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/mcphub/utils/ui.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function M.multiline_input(title, content, on_save, opts)
1818
width = math.min(width, max_width) - 3
1919

2020
-- Set buffer options
21-
vim.api.nvim_buf_set_option(bufnr, "buftype", "acwrite")
21+
vim.api.nvim_buf_set_option(bufnr, "buftype", "nofile")
2222
vim.api.nvim_buf_set_option(bufnr, "bufhidden", "wipe")
2323
vim.api.nvim_buf_set_option(bufnr, "swapfile", false)
2424
if opts.filetype then

0 commit comments

Comments
 (0)