From 6a0e98edc879c26f130386b2aeaba12ca3b67419 Mon Sep 17 00:00:00 2001 From: halvarsson Date: Sun, 7 May 2023 21:22:43 +0200 Subject: [PATCH] fix selection on tab characters --- PowerShellEditorTextView.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PowerShellEditorTextView.cs b/PowerShellEditorTextView.cs index 4424a07..2b99f65 100644 --- a/PowerShellEditorTextView.cs +++ b/PowerShellEditorTextView.cs @@ -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++;