@@ -9330,27 +9330,26 @@ public void setLineVerticalIndent(int lineIndex, int verticalLineIndent) {
93309330 if (verticalScrollbar != null ) {
93319331 verticalScrollbar .setMaximum (verticalScrollbar .getMaximum () + verticalIndentDiff );
93329332 }
9333- } else {
9334- resetCache (lineIndex , 1 );
9335- if ((initialTopIndex == 0 ) && (initialBottomIndex == (content .getLineCount () - 1 ))) { // not scrollable editor
9336- setCaretLocations ();
9337- redrawLines (lineIndex , getBottomIndex () - lineIndex + 1 , true );
9338- } else if (getFirstCaretLine () >= initialTopIndex && getFirstCaretLine () <= initialBottomIndex ) { // caret line with caret mustn't move
9339- if (getFirstCaretLine () < lineIndex ) {
9340- redrawLines (lineIndex , getPartialBottomIndex () - lineIndex + 1 , true );
9341- } else {
9342- setTopPixel (initialTopPixel + verticalIndentDiff );
9343- }
9344- } else { // move as few lines as possible
9345- if (lineIndex - getTopIndex () < getBottomIndex () - lineIndex ) {
9346- setTopPixel (initialTopPixel + verticalIndentDiff );
9347- } else {
9348- // redraw below
9349- redrawLines (lineIndex , getPartialBottomIndex () - lineIndex + 1 , true );
9350- }
9333+ }
9334+ resetCache (lineIndex , 1 );
9335+ if ((initialTopIndex == 0 ) && (initialBottomIndex == (content .getLineCount () - 1 ))) { // not scrollable editor
9336+ setCaretLocations ();
9337+ redrawLines (lineIndex , getBottomIndex () - lineIndex + 1 , true );
9338+ } else if (getFirstCaretLine () >= initialTopIndex && getFirstCaretLine () <= initialBottomIndex ) { // caret line with caret mustn't move
9339+ if (getFirstCaretLine () < lineIndex ) {
9340+ redrawLines (lineIndex , getPartialBottomIndex () - lineIndex + 1 , true );
9341+ } else {
9342+ setTopPixel (initialTopPixel + verticalIndentDiff );
9343+ }
9344+ } else { // move as few lines as possible
9345+ if (lineIndex - getTopIndex () < getBottomIndex () - lineIndex ) {
9346+ setTopPixel (initialTopPixel + verticalIndentDiff );
9347+ } else {
9348+ // redraw below
9349+ redrawLines (lineIndex , getPartialBottomIndex () - lineIndex + 1 , true );
93519350 }
9352- setScrollBars (true );
93539351 }
9352+ setScrollBars (true );
93549353}
93559354
93569355/**
0 commit comments