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.
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index a76261b..462851d 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -5893,12 +5893,17 @@
{
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