Skip to content

Commit

Permalink
fix: not being able to open yazi for directories
Browse files Browse the repository at this point in the history
...from a yazi session. It seemed to close the window twice, which
caused some issues (not sure why).

Looks like this was accidentally broken when I added experimental
support for scrolling in
#49

Should be fixed now.
  • Loading branch information
mikavilpas committed Apr 26, 2024
1 parent c359134 commit 9b80f3e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lua/yazi/window.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,6 @@ function YaziFloatingWindow:open_and_display()
vim.cmd('setlocal winhl=NormalFloat:YaziFloat')
vim.cmd('set winblend=' .. self.config.yazi_floating_window_winblend)

vim.api.nvim_create_autocmd({ 'WinLeave', 'TermLeave' }, {
buffer = yazi_buffer,
callback = function()
self:close()
end,
})

if self.config.enable_mouse_support == true then
self:add_hacky_mouse_support(yazi_buffer)
end
Expand Down

0 comments on commit 9b80f3e

Please sign in to comment.