Skip to content

Commit

Permalink
Updated code preview autoscroll to turn tabs into spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeRobich committed May 30, 2015
1 parent 50eb0ad commit d8b9333
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Controls/CodePreview.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ public void CenterEditor(int line)

column = Math.Min(column, lineIndentation);
}

this.Editor.LineScroll(column - 2, 0);
var indentation = column / Editor.TabWidth;
this.Editor.LineScroll(column - indentation, 0);
}

static bool IsNullOrWhiteSpace(string value)
Expand Down

0 comments on commit d8b9333

Please sign in to comment.