Skip to content

Commit 73c0fe1

Browse files
committed
update
1 parent c0815ab commit 73c0fe1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lua/dired/init.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,9 @@ local function create_shortcut_manager()
699699
end
700700
assigned = {}
701701
pool = vim.split(Config.shortcuts, '')
702-
api.nvim_buf_clear_namespace(state.buf, ns_mark, 0, -1)
702+
if api.nvim_buf_is_valid(state.buf) then
703+
api.nvim_buf_clear_namespace(state.buf, ns_mark, 0, -1)
704+
end
703705
end,
704706
assign = function(state, row)
705707
local key = select(1, unpack(pool))

0 commit comments

Comments
 (0)