@@ -12199,52 +12199,6 @@ find_mps_values(initc, findc, backwards, switchit)
1219912199 }
1220012200}
1220112201
12202- #if defined(FEAT_LINEBREAK ) || defined(PROTO )
12203- /*
12204- * This is called when 'breakindentopt' is changed and when a window is
12205- * initialized.
12206- */
12207- int
12208- briopt_check ()
12209- {
12210- char_u * p ;
12211- int bri_shift = 0 ;
12212- long bri_min = 20 ;
12213- int bri_sbr = FALSE;
12214-
12215- p = curwin -> w_p_briopt ;
12216- while (* p != NUL )
12217- {
12218- if (STRNCMP (p , "shift:" , 6 ) == 0
12219- && ((p [6 ] == '-' && VIM_ISDIGIT (p [7 ])) || VIM_ISDIGIT (p [6 ])))
12220- {
12221- p += 6 ;
12222- bri_shift = getdigits (& p );
12223- }
12224- else if (STRNCMP (p , "min:" , 4 ) == 0 && VIM_ISDIGIT (p [4 ]))
12225- {
12226- p += 4 ;
12227- bri_min = getdigits (& p );
12228- }
12229- else if (STRNCMP (p , "sbr" , 3 ) == 0 )
12230- {
12231- p += 3 ;
12232- bri_sbr = TRUE;
12233- }
12234- if (* p != ',' && * p != NUL )
12235- return FAIL ;
12236- if (* p == ',' )
12237- ++ p ;
12238- }
12239-
12240- curwin -> w_p_brishift = bri_shift ;
12241- curwin -> w_p_brimin = bri_min ;
12242- curwin -> w_p_brisbr = bri_sbr ;
12243-
12244- return OK ;
12245- }
12246- #endif
12247-
1224812202#ifdef FEAT_FULLSCREEN
1224912203/*
1225012204 * Read the 'fuoptions' option, set fuoptions_flags and
@@ -12336,3 +12290,49 @@ check_fuoptions(p_fuoptions, flags, bgcolor)
1233612290 return OK ;
1233712291}
1233812292#endif
12293+
12294+ #if defined(FEAT_LINEBREAK ) || defined(PROTO )
12295+ /*
12296+ * This is called when 'breakindentopt' is changed and when a window is
12297+ * initialized.
12298+ */
12299+ int
12300+ briopt_check ()
12301+ {
12302+ char_u * p ;
12303+ int bri_shift = 0 ;
12304+ long bri_min = 20 ;
12305+ int bri_sbr = FALSE;
12306+
12307+ p = curwin -> w_p_briopt ;
12308+ while (* p != NUL )
12309+ {
12310+ if (STRNCMP (p , "shift:" , 6 ) == 0
12311+ && ((p [6 ] == '-' && VIM_ISDIGIT (p [7 ])) || VIM_ISDIGIT (p [6 ])))
12312+ {
12313+ p += 6 ;
12314+ bri_shift = getdigits (& p );
12315+ }
12316+ else if (STRNCMP (p , "min:" , 4 ) == 0 && VIM_ISDIGIT (p [4 ]))
12317+ {
12318+ p += 4 ;
12319+ bri_min = getdigits (& p );
12320+ }
12321+ else if (STRNCMP (p , "sbr" , 3 ) == 0 )
12322+ {
12323+ p += 3 ;
12324+ bri_sbr = TRUE;
12325+ }
12326+ if (* p != ',' && * p != NUL )
12327+ return FAIL ;
12328+ if (* p == ',' )
12329+ ++ p ;
12330+ }
12331+
12332+ curwin -> w_p_brishift = bri_shift ;
12333+ curwin -> w_p_brimin = bri_min ;
12334+ curwin -> w_p_brisbr = bri_sbr ;
12335+
12336+ return OK ;
12337+ }
12338+ #endif
0 commit comments