Skip to content

Commit 4b54f57

Browse files
committed
fix separator insert mode keymap
1 parent 50d5f8c commit 4b54f57

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lua/dired/init.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -701,8 +701,6 @@ local function create_shortcut_manager()
701701
pool = vim.split(Config.shortcuts, '')
702702
if api.nvim_buf_is_valid(state.buf) then
703703
api.nvim_buf_clear_namespace(state.buf, ns_mark, 0, -1)
704-
else
705-
api.nvim_feedkeys(SEPARATOR, 'n', false)
706704
end
707705
end,
708706
assign = function(state, row)
@@ -1448,6 +1446,8 @@ Browser.setup = function(state)
14481446
local search_path = PathOps.getSearchPath(state) .. SEPARATOR
14491447
if PathOps.isDirectory(search_path) then
14501448
Actions.openDirectory(state, search_path).run()
1449+
else
1450+
api.nvim_feedkeys(SEPARATOR, 'n', false)
14511451
end
14521452
end,
14531453
},

0 commit comments

Comments
 (0)