0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.0743: can move to another buffer from a terminal in popup window

Problem:    Can move to another buffer from a terminal in popup window.
Solution:   Do not allow "gf" or editing a file. (closes #6072)
This commit is contained in:
Bram Moolenaar
2020-05-12 22:02:21 +02:00
parent 48a687148c
commit 5aed0ccb96
4 changed files with 19 additions and 0 deletions

View File

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