0
0
mirror of https://github.com/vim/vim.git synced 2025-10-02 05:04:20 -04:00

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.
This commit is contained in:
Bram Moolenaar
2019-08-05 21:52:04 +02:00
parent b4a88a0441
commit 1b6d9c4215
8 changed files with 86 additions and 2 deletions

View File

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