Skip to content

Commit

Permalink
fix: enable winfixbuf to prevent accidental buffer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
yujinyuz committed Jul 11, 2024
1 parent 5cad90b commit 1e0f6fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/gitpad/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ function M.open_window(opts)

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

if win_opts['relative'] then
vim.api.nvim_set_option_value(
Expand Down

0 comments on commit 1e0f6fa

Please sign in to comment.