diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-03-09 16:40:41 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-03-09 16:40:41 +0100 |
commit | 3a2505cc183b3c5f4852ae8a945172582fbc650f (patch) | |
tree | 4094257772a8e52c73df8d8213cb46206edd5d0a /src/ex_docmd.c | |
parent | 2e09634a7880f55a61cb6b959dd89c51972866af (diff) |
patch 8.2.0367: can use :pedit in a popup windowv8.2.0367
Problem: Can use :pedit in a popup window.
Solution: Disallow it.
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index f2fb646980..58ea7c8638 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -7886,6 +7886,9 @@ ex_pedit(exarg_T *eap) { win_T *curwin_save = curwin; + if (ERROR_IF_ANY_POPUP_WINDOW) + return; + // Open the preview window or popup and make it the current window. g_do_tagpreview = p_pvh; prepare_tagpreview(TRUE, TRUE, FALSE); |