File tree 3 files changed +7
-9
lines changed
3 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 1
- using System ;
2
1
using System . Collections . Generic ;
3
2
using System . Text ;
4
3
using System . Text . RegularExpressions ;
Original file line number Diff line number Diff line change @@ -54,13 +54,13 @@ public void MoveSelectedUp()
54
54
{
55
55
if ( _selected == null )
56
56
return ;
57
-
57
+
58
58
var idx = Workspaces . IndexOf ( _selected ) ;
59
59
if ( idx == 0 )
60
60
return ;
61
-
61
+
62
62
Workspaces . Move ( idx - 1 , idx ) ;
63
-
63
+
64
64
Preferences . Instance . Workspaces . RemoveAt ( idx ) ;
65
65
Preferences . Instance . Workspaces . Insert ( idx - 1 , _selected ) ;
66
66
}
@@ -69,13 +69,13 @@ public void MoveSelectedDown()
69
69
{
70
70
if ( _selected == null )
71
71
return ;
72
-
72
+
73
73
var idx = Workspaces . IndexOf ( _selected ) ;
74
74
if ( idx == Workspaces . Count - 1 )
75
75
return ;
76
-
76
+
77
77
Workspaces . Move ( idx + 1 , idx ) ;
78
-
78
+
79
79
Preferences . Instance . Workspaces . RemoveAt ( idx ) ;
80
80
Preferences . Instance . Workspaces . Insert ( idx + 1 , _selected ) ;
81
81
}
Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs chang
177
177
var rules = IssueTrackerRules ?? [ ] ;
178
178
foreach ( var rule in rules )
179
179
rule . Matches ( _elements , subject ) ;
180
-
180
+
181
181
_elements . Sort ( ( l , r ) => l . Start - r . Start ) ;
182
182
_needRebuildInlines = true ;
183
183
InvalidateVisual ( ) ;
@@ -319,7 +319,6 @@ private void GenerateFormattedTextElements()
319
319
foreground ) ;
320
320
321
321
_inlines . Add ( new Inline ( x , normal , null ) ) ;
322
- x += normal . WidthIncludingTrailingWhitespace ;
323
322
}
324
323
}
325
324
You can’t perform that action at this time.
0 commit comments