forked from aniani/vim
patch 8.1.1714: cannot preview a file in a popup window
Problem: Cannot preview a file in a popup window. Solution: Add the 'previewpopup' option.
This commit is contained in:
@@ -5893,12 +5893,17 @@ ex_pclose(exarg_T *eap)
|
||||
{
|
||||
win_T *win;
|
||||
|
||||
// First close any normal window.
|
||||
FOR_ALL_WINDOWS(win)
|
||||
if (win->w_p_pvw)
|
||||
{
|
||||
ex_win_close(eap->forceit, win, NULL);
|
||||
break;
|
||||
return;
|
||||
}
|
||||
# ifdef FEAT_TEXT_PROP
|
||||
// Also when 'previewpopup' is empty, it might have been cleared.
|
||||
popup_close_preview();
|
||||
# endif
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user