Skip to content

Commit 1dc8a94

Browse files
committed
update
1 parent 6a1a6d7 commit 1dc8a94

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lua/dired/init.lua

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1297,11 +1297,15 @@ Browser.setup = function(state)
12971297
{
12981298
key = Config.keymaps.switch,
12991299
action = function()
1300+
vim.wo[state.win].eventignorewin = 'InsertLeave'
13001301
if api.nvim_get_current_win() == state.search_win then
13011302
api.nvim_set_current_win(state.win)
1302-
return
1303+
else
1304+
api.nvim_set_current_win(state.search_win)
13031305
end
1304-
api.nvim_set_current_win(state.search_win)
1306+
vim.schedule(function()
1307+
vim.wo[state.win].eventignorewin = ''
1308+
end)
13051309
end,
13061310
buffer = { state.search_buf, state.buf },
13071311
},

0 commit comments

Comments
 (0)