Mercurial > vim
comparison src/ex_docmd.c @ 17431:ce35cdbe9f74 v8.1.1714
patch 8.1.1714: cannot preview a file in a popup window
commit https://github.com/vim/vim/commit/7964873afe59d0896a921b7c585167674bb784d5
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jul 18 21:43:07 2019 +0200
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 18 Jul 2019 21:45:06 +0200 |
parents | 81705f4d9e03 |
children | cfdef48743ed |
comparison
equal
deleted
inserted
replaced
17430:23c5d343007c | 17431:ce35cdbe9f74 |
---|---|
5891 static void | 5891 static void |
5892 ex_pclose(exarg_T *eap) | 5892 ex_pclose(exarg_T *eap) |
5893 { | 5893 { |
5894 win_T *win; | 5894 win_T *win; |
5895 | 5895 |
5896 // First close any normal window. | |
5896 FOR_ALL_WINDOWS(win) | 5897 FOR_ALL_WINDOWS(win) |
5897 if (win->w_p_pvw) | 5898 if (win->w_p_pvw) |
5898 { | 5899 { |
5899 ex_win_close(eap->forceit, win, NULL); | 5900 ex_win_close(eap->forceit, win, NULL); |
5900 break; | 5901 return; |
5901 } | 5902 } |
5903 # ifdef FEAT_TEXT_PROP | |
5904 // Also when 'previewpopup' is empty, it might have been cleared. | |
5905 popup_close_preview(); | |
5906 # endif | |
5902 } | 5907 } |
5903 #endif | 5908 #endif |
5904 | 5909 |
5905 /* | 5910 /* |
5906 * Close window "win" and take care of handling closing the last window for a | 5911 * Close window "win" and take care of handling closing the last window for a |