From 1b6d9c4215a56f3dda4df6e05d655c853551ffbd Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 5 Aug 2019 21:52:04 +0200 Subject: patch 8.1.1819: :pedit does not work with a popup preview window Problem: :pedit does not work with a popup preview window. Solution: Avoid aborting with an error. (fixes #4777) Also double check that after prepare_tagpreview() the current window is not a popup window. --- src/tag.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/tag.c') diff --git a/src/tag.c b/src/tag.c index e288e4d839..0c36db9838 100644 --- a/src/tag.c +++ b/src/tag.c @@ -3693,6 +3693,11 @@ jumpto_tag( } #endif } +#if defined(FEAT_QUICKFIX) && defined(FEAT_TEXT_PROP) + if (WIN_IS_POPUP(curwin)) + // something went wrong, still in popup, but it can't have focus + win_enter(firstwin, TRUE); +#endif erret: #if defined(FEAT_QUICKFIX) -- cgit v1.2.3