summaryrefslogtreecommitdiff
path: root/src/normal.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-05-12 22:02:21 +0200
committerBram Moolenaar <Bram@vim.org>2020-05-12 22:02:21 +0200
commit5aed0ccb965dbad4b60f4c77c9c4455a9379e73c (patch)
tree8347858e800403f8fa07f1fd7b7993b5f18dac4b /src/normal.c
parent48a687148c4649f6f55b36a1f4111041e7207235 (diff)
downloadvim-git-5aed0ccb965dbad4b60f4c77c9c4455a9379e73c.tar.gz
patch 8.2.0743: can move to another buffer from a terminal in popup windowv8.2.0743
Problem: Can move to another buffer from a terminal in popup window. Solution: Do not allow "gf" or editing a file. (closes #6072)
Diffstat (limited to 'src/normal.c')
-rw-r--r--src/normal.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/normal.c b/src/normal.c
index 7dd74a40b..690bb0081 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -4169,6 +4169,10 @@ nv_gotofile(cmdarg_T *cap)
clearop(cap->oap);
return;
}
+#ifdef FEAT_PROP_POPUP
+ if (ERROR_IF_TERM_POPUP_WINDOW)
+ return;
+#endif
ptr = grab_file_name(cap->count1, &lnum);