File tree Expand file tree Collapse file tree 2 files changed +3
-17
lines changed Expand file tree Collapse file tree 2 files changed +3
-17
lines changed Original file line number Diff line number Diff line change 4
4
--- Hope to get this part merged in at some point in the future.
5
5
6
6
local Border = require (" plenary.window.border" )
7
+ local Window = require (" plenary.window" )
7
8
local utils = require (" popup.utils" )
8
9
9
10
local popup = {}
@@ -181,7 +182,7 @@ function popup.create(what, vim_options)
181
182
local silent = false
182
183
vim .cmd (
183
184
string.format (
184
- " autocmd BufLeave,BufDelete %s <buffer=%s> ++nested call popup#close_win( %s, v: true)" ,
185
+ " autocmd BufLeave,BufDelete %s <buffer=%s> ++nested :lua require('plenary.window').try_close( %s, true)" ,
185
186
(silent and " <silent>" ) or ' ' ,
186
187
bufnr ,
187
188
win_id
@@ -192,7 +193,7 @@ function popup.create(what, vim_options)
192
193
if vim_options .time then
193
194
local timer = vim .loop .new_timer ()
194
195
timer :start (vim_options .time , 0 , vim .schedule_wrap (function ()
195
- vim . fn [ ' popup#close_win ' ] (win_id , false )
196
+ Window . try_close (win_id , false )
196
197
end ))
197
198
end
198
199
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments