diff src/option.c @ 1382:4238b697bfff v7.1.097

updated for version 7.1-097
author vimboss
date Thu, 06 Sep 2007 11:33:37 +0000
parents c544a3507e83
children 5ef53a1677ee
line wrap: on
line diff
--- a/src/option.c
+++ b/src/option.c
@@ -6348,7 +6348,7 @@ did_set_string_option(opt_idx, varp, new
 		errmsg = check_stl_option(p_ruf);
 	}
 	/* check 'statusline' only if it doesn't start with "%!" */
-	else if (varp != &p_stl || s[0] != '%' || s[1] != '!')
+	else if (varp == &p_ruf || s[0] != '%' || s[1] != '!')
 	    errmsg = check_stl_option(s);
 	if (varp == &p_ruf && errmsg == NULL)
 	    comp_col();