#ifdef USE_ON_FLY_SCROLL
dont_scroll = TRUE; /* disallow scrolling here */
#endif
+ cmdline_row = msg_row;
+
/* Avoid the sequence that the user types ":" at the hit-return prompt
* to start an Ex command, but the file-changed dialog gets in the
* way. */
static int
do_more_prompt(int typed_char)
{
+ static int entered = FALSE;
int used_typed_char = typed_char;
int oldState = State;
int c;
msgchunk_T *mp;
int i;
+ /* We get called recursively when a timer callback outputs a message. In
+ * that case don't show another prompt. Also when at the hit-Enter prompt.
+ */
+ if (entered || State == HITRETURN)
+ return FALSE;
+ entered = TRUE;
+
if (typed_char == 'G')
{
/* "g<": Find first line on the last page. */
msg_col = Columns - 1;
#endif
+ entered = FALSE;
#ifdef FEAT_CON_DIALOG
return retval;
#else
void
redraw_after_callback()
{
- update_screen(0);
- setcursor();
+ if (State == HITRETURN || State == ASKMORE)
+ ; /* do nothing */
+ else if (State & CMDLINE)
+ redrawcmdline();
+ else if ((State & NORMAL) || (State & INSERT))
+ {
+ update_screen(0);
+ setcursor();
+ }
cursor_on();
out_flush();
#ifdef FEAT_GUI