Skip to content

Commit 34c5224

Browse files
committed
Close window correctly on Vim
In other layouts, the window is not a popup. Close the nnn window through its window number.
1 parent 0869962 commit 34c5224

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/nnn.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ function! s:switch_back(opts, Cmd)
239239
call nvim_win_close(l:term_wins.term.winhandle, v:false)
240240
endif
241241
else
242-
call popup_close(l:term_wins.term.winhandle)
242+
execute win_id2win(l:term_wins.term.winhandle) . 'close'
243243
endif
244244
catch /E444: Cannot close last window/
245245
" In case Vim complains it is the last window, fail silently.

0 commit comments

Comments
 (0)