comparison src/window.c @ 19166:215793f6b59d v8.2.0142

patch 8.2.0142: possible to enter popup window with CTRL-W p Commit: https://github.com/vim/vim/commit/8bf716cdba0e48f56b8bfcbed0f4c702a705e095 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jan 23 15:33:54 2020 +0100 patch 8.2.0142: possible to enter popup window with CTRL-W p Problem: Possible to enter popup window with CTRL-W p. (John Devin) Solution: Check entered window is not a popup window. (closes https://github.com/vim/vim/issues/5515)
author Bram Moolenaar <Bram@vim.org>
date Thu, 23 Jan 2020 15:45:04 +0100
parents 013f20a3bc6b
children ce8c47ed54e5
comparison
equal deleted inserted replaced
19165:2b27d69738b7 19166:215793f6b59d
4341 { 4341 {
4342 #ifdef FEAT_CONCEAL 4342 #ifdef FEAT_CONCEAL
4343 win_T *owp = curwin; 4343 win_T *owp = curwin;
4344 #endif 4344 #endif
4345 4345
4346 #ifdef FEAT_PROP_POPUP
4346 if (ERROR_IF_POPUP_WINDOW) 4347 if (ERROR_IF_POPUP_WINDOW)
4347 return; 4348 return;
4349 if (popup_is_popup(wp))
4350 {
4351 emsg(_("E366: Not allowed to enter a popup window"));
4352 return;
4353 }
4354 #endif
4348 if (text_locked()) 4355 if (text_locked())
4349 { 4356 {
4350 beep_flush(); 4357 beep_flush();
4351 text_locked_msg(); 4358 text_locked_msg();
4352 return; 4359 return;