mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-25 21:07:20 -08:00
Corrected misspelled local variable nextHigh(t)light
This commit is contained in:
parent
7d3b996de0
commit
7d91c21b87
2 changed files with 14 additions and 4 deletions
|
@ -73,6 +73,16 @@ namespace SourceGit.ViewModels
|
||||||
LoadDiffContent();
|
LoadDiffContent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void PrevChange()
|
||||||
|
{
|
||||||
|
// To be implemented...
|
||||||
|
}
|
||||||
|
|
||||||
|
public void NextChange()
|
||||||
|
{
|
||||||
|
// To be implemented...
|
||||||
|
}
|
||||||
|
|
||||||
public void ToggleFullTextDiff()
|
public void ToggleFullTextDiff()
|
||||||
{
|
{
|
||||||
Preference.Instance.UseFullTextDiff = !Preference.Instance.UseFullTextDiff;
|
Preference.Instance.UseFullTextDiff = !Preference.Instance.UseFullTextDiff;
|
||||||
|
|
|
@ -279,7 +279,7 @@ namespace SourceGit.Views
|
||||||
var highlightBG = info.Type == Models.TextDiffLineType.Added ? _presenter.AddedHighlightBrush : _presenter.DeletedHighlightBrush;
|
var highlightBG = info.Type == Models.TextDiffLineType.Added ? _presenter.AddedHighlightBrush : _presenter.DeletedHighlightBrush;
|
||||||
var processingIdxStart = 0;
|
var processingIdxStart = 0;
|
||||||
var processingIdxEnd = 0;
|
var processingIdxEnd = 0;
|
||||||
var nextHightlight = 0;
|
var nextHighlight = 0;
|
||||||
|
|
||||||
foreach (var tl in line.TextLines)
|
foreach (var tl in line.TextLines)
|
||||||
{
|
{
|
||||||
|
@ -288,9 +288,9 @@ namespace SourceGit.Views
|
||||||
var y = line.GetTextLineVisualYPosition(tl, VisualYPosition.LineTop) - textView.VerticalOffset;
|
var y = line.GetTextLineVisualYPosition(tl, VisualYPosition.LineTop) - textView.VerticalOffset;
|
||||||
var h = line.GetTextLineVisualYPosition(tl, VisualYPosition.LineBottom) - textView.VerticalOffset - y;
|
var h = line.GetTextLineVisualYPosition(tl, VisualYPosition.LineBottom) - textView.VerticalOffset - y;
|
||||||
|
|
||||||
while (nextHightlight < info.Highlights.Count)
|
while (nextHighlight < info.Highlights.Count)
|
||||||
{
|
{
|
||||||
var highlight = info.Highlights[nextHightlight];
|
var highlight = info.Highlights[nextHighlight];
|
||||||
if (highlight.Start >= processingIdxEnd)
|
if (highlight.Start >= processingIdxEnd)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -305,7 +305,7 @@ namespace SourceGit.Views
|
||||||
if (highlight.End >= processingIdxEnd)
|
if (highlight.End >= processingIdxEnd)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
nextHightlight++;
|
nextHighlight++;
|
||||||
}
|
}
|
||||||
|
|
||||||
processingIdxStart = processingIdxEnd;
|
processingIdxStart = processingIdxEnd;
|
||||||
|
|
Loading…
Reference in a new issue