1
0
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:
Bram Moolenaar
2019-07-18 21:43:07 +02:00
parent df9c6cad8c
commit 7964873afe
12 changed files with 322 additions and 69 deletions

View File

@@ -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