Skip to content

Commit

Permalink
fix: floats for telescope (nvim-lua#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
Conni2461 authored May 8, 2021
1 parent 02990e4 commit 3f99330
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/plenary/window/border.lua
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,13 @@ function Border:new(content_bufnr, content_win_id, content_win_options, border_w
})

vim.cmd(string.format(
"autocmd BufLeave,BufDelete <buffer=%s> ++nested ++once :lua require('plenary.window').close_related_win(%s, %s)",
"autocmd BufDelete <buffer=%s> ++nested ++once :lua require('plenary.window').close_related_win(%s, %s)",
content_bufnr,
content_win_id,
obj.win_id))

vim.cmd(string.format(
"autocmd WinClosed,WinLeave <buffer=%s> ++nested ++once :lua require('plenary.window').try_close(%s, true)",
"autocmd WinClosed <buffer=%s> ++nested ++once :lua require('plenary.window').try_close(%s, true)",
content_bufnr,
obj.win_id))

Expand Down

0 comments on commit 3f99330

Please sign in to comment.