summaryrefslogtreecommitdiffstats
path: root/src/tag.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-08-05 21:52:04 +0200
committerBram Moolenaar <Bram@vim.org>2019-08-05 21:52:04 +0200
commit1b6d9c4215a56f3dda4df6e05d655c853551ffbd (patch)
tree57904cb4d8c5ac3513f1f7c946f8dafe949c8498 /src/tag.c
parentb4a88a0441a65a0c9411c294825a08ca703f541e (diff)
patch 8.1.1819: :pedit does not work with a popup preview windowv8.1.1819
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.
Diffstat (limited to 'src/tag.c')
-rw-r--r--src/tag.c5
1 files changed, 5 insertions, 0 deletions
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)