We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0815ab commit 73c0fe1Copy full SHA for 73c0fe1
1 file changed
lua/dired/init.lua
@@ -699,7 +699,9 @@ local function create_shortcut_manager()
699
end
700
assigned = {}
701
pool = vim.split(Config.shortcuts, '')
702
- api.nvim_buf_clear_namespace(state.buf, ns_mark, 0, -1)
+ if api.nvim_buf_is_valid(state.buf) then
703
+ api.nvim_buf_clear_namespace(state.buf, ns_mark, 0, -1)
704
+ end
705
end,
706
assign = function(state, row)
707
local key = select(1, unpack(pool))
0 commit comments