From 5aed0ccb965dbad4b60f4c77c9c4455a9379e73c Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 12 May 2020 22:02:21 +0200 Subject: 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) --- src/ex_cmds.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/ex_cmds.c') diff --git a/src/ex_cmds.c b/src/ex_cmds.c index f38bdacb6..9c55de3ad 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -2484,6 +2484,11 @@ do_ecmd( int did_inc_redrawing_disabled = FALSE; long *so_ptr = curwin->w_p_so >= 0 ? &curwin->w_p_so : &p_so; +#ifdef FEAT_PROP_POPUP + if (ERROR_IF_TERM_POPUP_WINDOW) + return FAIL; +#endif + if (eap != NULL) command = eap->do_ecmd_cmd; set_bufref(&old_curbuf, curbuf); -- cgit v1.2.1