Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d0dc9ac

Browse files
committed
Corrected misspelled local variable nextHigh(t)light
1 parent fbb07cf commit d0dc9ac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/Views/TextDiffView.axaml.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ public void Draw(TextView textView, DrawingContext drawingContext)
268268
var highlightBG = info.Type == Models.TextDiffLineType.Added ? _presenter.AddedHighlightBrush : _presenter.DeletedHighlightBrush;
269269
var processingIdxStart = 0;
270270
var processingIdxEnd = 0;
271-
var nextHightlight = 0;
271+
var nextHighlight = 0;
272272

273273
foreach (var tl in line.TextLines)
274274
{
@@ -277,9 +277,9 @@ public void Draw(TextView textView, DrawingContext drawingContext)
277277
var y = line.GetTextLineVisualYPosition(tl, VisualYPosition.LineTop) - textView.VerticalOffset;
278278
var h = line.GetTextLineVisualYPosition(tl, VisualYPosition.LineBottom) - textView.VerticalOffset - y;
279279

280-
while (nextHightlight < info.Highlights.Count)
280+
while (nextHighlight < info.Highlights.Count)
281281
{
282-
var highlight = info.Highlights[nextHightlight];
282+
var highlight = info.Highlights[nextHighlight];
283283
if (highlight.Start >= processingIdxEnd)
284284
break;
285285

@@ -294,7 +294,7 @@ public void Draw(TextView textView, DrawingContext drawingContext)
294294
if (highlight.End >= processingIdxEnd)
295295
break;
296296

297-
nextHightlight++;
297+
nextHighlight++;
298298
}
299299

300300
processingIdxStart = processingIdxEnd;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /