From 3f993308024697186c02d51df1330bf07c12535a Mon Sep 17 00:00:00 2001 From: Simon Hauser Date: Sat, 8 May 2021 13:13:01 +0200 Subject: [PATCH] fix: floats for telescope (#155) --- lua/plenary/window/border.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/plenary/window/border.lua b/lua/plenary/window/border.lua index 13c7e84b..f8db15b2 100644 --- a/lua/plenary/window/border.lua +++ b/lua/plenary/window/border.lua @@ -136,13 +136,13 @@ function Border:new(content_bufnr, content_win_id, content_win_options, border_w }) vim.cmd(string.format( - "autocmd BufLeave,BufDelete ++nested ++once :lua require('plenary.window').close_related_win(%s, %s)", + "autocmd BufDelete ++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 ++nested ++once :lua require('plenary.window').try_close(%s, true)", + "autocmd WinClosed ++nested ++once :lua require('plenary.window').try_close(%s, true)", content_bufnr, obj.win_id))