Skip to content

Commit 1e0f6fa

Browse files
committed
fix: enable winfixbuf to prevent accidental buffer changes
1 parent 5cad90b commit 1e0f6fa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/gitpad/init.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ function M.open_window(opts)
182182

183183
vim.api.nvim_set_option_value('filetype', 'markdown', { buf = bufnr })
184184
vim.api.nvim_set_option_value('buflisted', false, { buf = bufnr })
185+
vim.api.nvim_set_option_value('winfixbuf', true, { win = gitpad_win_id })
185186

186187
if win_opts['relative'] then
187188
vim.api.nvim_set_option_value(

0 commit comments

Comments
 (0)