Skip to content

Commit 3ef7c4d

Browse files
add winid() and bufnr() api
1 parent 62e5a34 commit 3ef7c4d

File tree

1 file changed

+8
-0
lines changed
  • autoload/vital/__vital__/Experimental/UI

1 file changed

+8
-0
lines changed

autoload/vital/__vital__/Experimental/UI/Popup.vim

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,14 @@ function! s:contents(id, contents) abort
9292
endif
9393
endfunction
9494

95+
function! s:winid(id) abort
96+
return s:_popups[a:id]['winid']
97+
endfunction
98+
99+
function! s:bufnr(id) abort
100+
return s:_popups[a:id]['bufnr']
101+
endfunction
102+
95103
function! s:_nvim_open_win(id, data) abort
96104
let opt = {
97105
\ 'relative': 'editor',

0 commit comments

Comments
 (0)