patch 9.0.0512: cannot redraw the status lines when editing a command

Problem:    Cannot redraw the status lines when editing a command.
Solution:   Only postpone the redraw when messages have scrolled.
            (closes #11170)
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 3076d53..8cdf601 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -8431,7 +8431,7 @@
 	status_redraw_all();
     else
 	status_redraw_curbuf();
-    if (State & MODE_CMDLINE)
+    if (msg_scrolled)
 	return;  // redraw later
 
     RedrawingDisabled = 0;