File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
- using System ;
1
+ using System ;
2
2
using System . Collections ;
3
3
using System . Collections . Generic ;
4
4
using System . IO ;
@@ -387,7 +387,7 @@ public ContextMenu MakeContextMenu(ListBox list)
387
387
{
388
388
var builder = new StringBuilder ( ) ;
389
389
foreach ( var c in selected )
390
- builder . AppendLine ( $ "{ c . SHA . Substring ( 0 , 10 ) } - { c . Subject } ") ;
390
+ builder . AppendLine ( $ "{ c . SHA . AsSpan ( 0 , 10 ) } - { c . Subject } ") ;
391
391
392
392
App . CopyText ( builder . ToString ( ) ) ;
393
393
e . Handled = true ;
@@ -780,7 +780,7 @@ public ContextMenu MakeContextMenu(ListBox list)
780
780
copyInfo . Icon = App . CreateMenuIcon ( "Icons.Info" ) ;
781
781
copyInfo . Click += ( _ , e ) =>
782
782
{
783
- App . CopyText ( $ "{ commit . SHA . Substring ( 0 , 10 ) } - { commit . Subject } ") ;
783
+ App . CopyText ( $ "{ commit . SHA . AsSpan ( 0 , 10 ) } - { commit . Subject } ") ;
784
784
e . Handled = true ;
785
785
} ;
786
786
You can’t perform that action at this time.
0 commit comments