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);
call assert_equal(winnr(), winnr('k'))
call assert_equal(winnr(), winnr('h'))
call assert_equal(winnr(), winnr('l'))
+
" Cannot quit while job is running
call assert_fails('call feedkeys("\<C-W>:quit\<CR>", "xt")', 'E948:')
+
+ " Cannot enter Terminal-Normal mode.
+ call feedkeys("xxx\<C-W>N", 'xt')
+ call assert_fails('call feedkeys("gf", "xt")', 'E863:')
+ call feedkeys("a\<C-U>", 'xt')
+
+ " Exiting shell closes popup window
call feedkeys("exit\<CR>", 'xt')
" Wait for shell to exit
sleep 100m