diff src/screen.c @ 1910:1287e2bbeb40 v7.2.207

updated for version 7.2-207
author vimboss
date Tue, 16 Jun 2009 15:22:12 +0000
parents ff9ecf14efe3
children a9f561ffbc53
line wrap: on
line diff
--- a/src/screen.c
+++ b/src/screen.c
@@ -5743,6 +5743,13 @@ win_redr_status(wp)
     int		fillchar;
     int		attr;
     int		this_ru_col;
+    static int  busy = FALSE;
+
+    /* It's possible to get here recursively when 'statusline' (indirectly)
+     * invokes ":redrawstatus".  Simply ignore the call then. */
+    if (busy)
+	return;
+    busy = TRUE;
 
     wp->w_redr_status = FALSE;
     if (wp->w_status_height == 0)
@@ -5881,6 +5888,7 @@ win_redr_status(wp)
 									attr);
     }
 #endif
+    busy = FALSE;
 }
 
 #ifdef FEAT_STL_OPT