We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 422cd80 + 4289727 commit a997a8fCopy full SHA for a997a8f
autoload/nnn.vim
@@ -232,6 +232,14 @@ function! s:switch_back(opts, Cmd)
232
if (type(a:Cmd) == v:t_string && a:Cmd != 'edit')
233
\ || (type(l:layout) != v:t_string
234
\ || (type(l:layout) == v:t_string && l:layout != 'enew'))
235
+ " delete the nnn window and buffer
236
+ if has('nvim')
237
+ if nvim_win_is_valid(l:term_wins.term.winhandle)
238
+ call nvim_win_close(l:term_wins.term.winhandle, v:false)
239
+ endif
240
+ else
241
+ call popup_close(l:term_wins.term.winhandle)
242
243
if bufexists(l:term_wins.term.buf)
244
execute 'bwipeout!' l:term_wins.term.buf
245
endif
0 commit comments