Skip to content

Commit

Permalink
fix: variable selection for code block snippets with ^ at the end did…
Browse files Browse the repository at this point in the history
…n't work
  • Loading branch information
PocketMiner82 committed Apr 16, 2024
1 parent cc9697b commit 1797435
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public override void OnSelected(SelectedEventArgs e)

bool inSelection = false;
int textLengthWithoutMarkers = Text.Replace("\\^", " ").Replace("^", "").Length;
textLengthWithoutMarkers += Text.EndsWith("^") ? 1 : 0;
for (int i = Parent.Fragment.Start; ; i++)
{
recheck:
Expand Down

0 comments on commit 1797435

Please sign in to comment.