patch 9.0.0507: cmdline cleared when using :redrawstatus in CmdlineChanged

Problem:    Command line cleared when using :redrawstatus in CmdlineChanged
            autocommand event.
Solution:   Postpone the redraw. (closes #11162)
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 814f1b6..3076d53 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -8427,12 +8427,15 @@
     int		r = RedrawingDisabled;
     int		p = p_lz;
 
-    RedrawingDisabled = 0;
-    p_lz = FALSE;
     if (eap->forceit)
 	status_redraw_all();
     else
 	status_redraw_curbuf();
+    if (State & MODE_CMDLINE)
+	return;  // redraw later
+
+    RedrawingDisabled = 0;
+    p_lz = FALSE;
     update_screen(VIsual_active ? UPD_INVERTED : 0);
     RedrawingDisabled = r;
     p_lz = p;