Skip to content

Commit

Permalink
fix selection on tab characters
Browse files Browse the repository at this point in the history
  • Loading branch information
halvarsson committed May 7, 2023
1 parent 49fe901 commit 6a0e98e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PowerShellEditorTextView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,12 @@ public override void Redraw(Rect bounds)
{
cols = right - col;
}
for (int i = 1; i < cols; i++)
for (int i = 0; i < cols; i++)
{
if (col + i < right)
{
ColorToken(colToken, colError, row, col, Selecting && PointInSelection(idxCol, idxRow));
AddRune(col, row, ' ');
AddRune(col + i, row, ' ');
}
}
tokenCol++;
Expand Down

0 comments on commit 6a0e98e

Please sign in to comment.