&& !exmode_active && msg_silent == 0) || force)
{
len = vim_strsize(s);
- if (msg_scrolled != 0)
+ if (msg_scrolled != 0
+#ifdef HAS_MESSAGE_WINDOW
+ || use_message_window()
+#endif
+ )
// Use all the columns.
room = (int)(Rows - msg_row) * Columns - 1;
else
void
msg_check(void)
{
- if (msg_row == Rows - 1 && msg_col >= sc_col)
+ if (msg_row == Rows - 1 && msg_col >= sc_col
+#ifdef HAS_MESSAGE_WINDOW
+ && !use_message_window()
+#endif
+ )
{
need_wait_return = TRUE;
redraw_cmdline = TRUE;
popup_update_color(message_win, TYPE_MESSAGE_WIN);
popup_show(message_win);
}
- else if (message_win->w_popup_timer != NULL)
+ if (message_win->w_popup_timer != NULL)
timer_start(message_win->w_popup_timer);
}
}
call term_sendkeys(buf, "\<Esc>:echo 'message window'\<CR>")
call VerifyScreenDump(buf, 'Test_cmdheight_zero_3', {})
+ " Message for CTRL-C is in the popup window
+ "call term_sendkeys(buf, ":call popup_clear()\<CR>")
+ call term_sendkeys(buf, "\<C-C>")
+ call VerifyScreenDump(buf, 'Test_cmdheight_zero_4', {})
+
" clean up
call StopVimInTerminal(buf)
call delete('XtestCmdheight')
endfunc
+func Test_cmdheight_zero_shell()
+ CheckUnix
+
+ set cmdheight=0
+ set nomore
+ call setline(1, 'foo!')
+ silent !echo <cWORD> > Xfile.out
+ call assert_equal(['foo!'], readfile('Xfile.out'))
+ call delete('Xfile.out')
+ redraw!
+
+ set more&
+ set cmdheight&
+endfunc
+
" vim: shiftwidth=2 sts=2 expandtab