if ( getconfig( "AutoAdjustOrikaeshi" ) == 2 ) { #width = windowwidth; } else { #width = getconfig( "Orikaeshi" ); } disabledraw; begingroupundo; if ( !selecting ) { selectall; } #i = seltoplineno; #end = selendlineno; escape; while( #i <= #end ) { movetolineno 1, #i; #margin = #width - linelen2; if ( #margin >= 0 ) { #j = #margin / 2; while( #j > 0 ) { insert " "; #j = #j - 1; } } else { while( linelen2 > #width ) { golineend2; backspace; if ( !linelen2 > #width ) { break; } golinetop2 delete; } } #i = #i + 1; } endgroupundo; enabledraw;