diff src/option.c @ 1958:c51a4f993675 v7.2.255

updated for version 7.2-255
author vimboss
date Fri, 11 Sep 2009 13:20:33 +0000
parents 9d6a886aceb2
children 1da25369227b
line wrap: on
line diff
--- a/src/option.c
+++ b/src/option.c
@@ -7430,6 +7430,8 @@ set_bool_option(opt_idx, varp, value, op
     {
 	if (curwin->w_p_wrap)
 	    curwin->w_leftcol = 0;
+	if (curwin->w_curswant != MAXCOL)
+	    curwin->w_set_curswant = TRUE;
     }
 
 #ifdef FEAT_WINDOWS
@@ -7664,6 +7666,22 @@ set_bool_option(opt_idx, varp, value, op
     }
 #endif
 
+#ifdef FEAT_LINEBREAK
+    if ((int *)varp == &curwin->w_p_lbr)
+    {
+	if (curwin->w_curswant != MAXCOL)
+	    curwin->w_set_curswant = TRUE;
+    }
+#endif
+
+#ifdef FEAT_RIGHTLEFT
+    if ((int *)varp == &curwin->w_p_rl)
+    {
+	if (curwin->w_curswant != MAXCOL)
+	    curwin->w_set_curswant = TRUE;
+    }
+#endif
+
     /*
      * End of handling side effects for bool options.
      */