We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8859c47 commit 00e3e24Copy full SHA for 00e3e24
lua/gitlab/actions/discussions/init.lua
@@ -74,10 +74,10 @@ M.modifiable = function(bool)
74
local view = diffview_lib.get_current_view()
75
local a = view.cur_layout.a.file.bufnr
76
local b = view.cur_layout.b.file.bufnr
77
- if vim.api.nvim_buf_is_loaded(a) then
+ if a ~= nil and vim.api.nvim_buf_is_loaded(a) then
78
vim.api.nvim_buf_set_option(a, "modifiable", bool)
79
end
80
- if vim.api.nvim_buf_is_loaded(b) then
+ if b ~= nil and vim.api.nvim_buf_is_loaded(b) then
81
vim.api.nvim_buf_set_option(b, "modifiable", bool)
82
83
0 commit comments