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 1bda4de

Browse files
committed
Corrected misspelled local variable nextHigh(t)light
1 parent f9c55a9 commit 1bda4de

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
@@ -279,7 +279,7 @@ public void Draw(TextView textView, DrawingContext drawingContext)
279279
var highlightBG = info.Type == Models.TextDiffLineType.Added ? _presenter.AddedHighlightBrush : _presenter.DeletedHighlightBrush;
280280
var processingIdxStart = 0;
281281
var processingIdxEnd = 0;
282-
var nextHightlight = 0;
282+
var nextHighlight = 0;
283283

284284
foreach (var tl in line.TextLines)
285285
{
@@ -288,9 +288,9 @@ public void Draw(TextView textView, DrawingContext drawingContext)
288288
var y = line.GetTextLineVisualYPosition(tl, VisualYPosition.LineTop) - textView.VerticalOffset;
289289
var h = line.GetTextLineVisualYPosition(tl, VisualYPosition.LineBottom) - textView.VerticalOffset - y;
290290

291-
while (nextHightlight < info.Highlights.Count)
291+
while (nextHighlight < info.Highlights.Count)
292292
{
293-
var highlight = info.Highlights[nextHightlight];
293+
var highlight = info.Highlights[nextHighlight];
294294
if (highlight.Start >= processingIdxEnd)
295295
break;
296296

@@ -305,7 +305,7 @@ public void Draw(TextView textView, DrawingContext drawingContext)
305305
if (highlight.End >= processingIdxEnd)
306306
break;
307307

308-
nextHightlight++;
308+
nextHighlight++;
309309
}
310310

311311
processingIdxStart = processingIdxEnd;

0 commit comments

Comments
(0)

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