mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-23 10:22:13 +08:00
@@ -1,4 +1,3 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
@@ -54,13 +54,13 @@ namespace SourceGit.ViewModels
|
||||
{
|
||||
if (_selected == null)
|
||||
return;
|
||||
|
||||
|
||||
var idx = Workspaces.IndexOf(_selected);
|
||||
if (idx == 0)
|
||||
return;
|
||||
|
||||
|
||||
Workspaces.Move(idx - 1, idx);
|
||||
|
||||
|
||||
Preferences.Instance.Workspaces.RemoveAt(idx);
|
||||
Preferences.Instance.Workspaces.Insert(idx - 1, _selected);
|
||||
}
|
||||
@@ -69,13 +69,13 @@ namespace SourceGit.ViewModels
|
||||
{
|
||||
if (_selected == null)
|
||||
return;
|
||||
|
||||
|
||||
var idx = Workspaces.IndexOf(_selected);
|
||||
if (idx == Workspaces.Count - 1)
|
||||
return;
|
||||
|
||||
|
||||
Workspaces.Move(idx + 1, idx);
|
||||
|
||||
|
||||
Preferences.Instance.Workspaces.RemoveAt(idx);
|
||||
Preferences.Instance.Workspaces.Insert(idx + 1, _selected);
|
||||
}
|
||||
|
||||
@@ -177,7 +177,7 @@ namespace SourceGit.Views
|
||||
var rules = IssueTrackerRules ?? [];
|
||||
foreach (var rule in rules)
|
||||
rule.Matches(_elements, subject);
|
||||
|
||||
|
||||
_elements.Sort((l, r) => l.Start - r.Start);
|
||||
_needRebuildInlines = true;
|
||||
InvalidateVisual();
|
||||
@@ -319,7 +319,6 @@ namespace SourceGit.Views
|
||||
foreground);
|
||||
|
||||
_inlines.Add(new Inline(x, normal, null));
|
||||
x += normal.WidthIncludingTrailingWhitespace;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user