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 ;
22using System . Collections ;
33using System . Collections . Generic ;
44using System . IO ;
@@ -387,7 +387,7 @@ public ContextMenu MakeContextMenu(ListBox list)
387387 {
388388 var builder = new StringBuilder ( ) ;
389389 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 } ") ;
391391
392392 App . CopyText ( builder . ToString ( ) ) ;
393393 e . Handled = true ;
@@ -780,7 +780,7 @@ public ContextMenu MakeContextMenu(ListBox list)
780780 copyInfo . Icon = App . CreateMenuIcon ( "Icons.Info" ) ;
781781 copyInfo . Click += ( _ , e ) =>
782782 {
783- App . CopyText ( $ "{ commit . SHA . Substring ( 0 , 10 ) } - { commit . Subject } ") ;
783+ App . CopyText ( $ "{ commit . SHA . AsSpan ( 0 , 10 ) } - { commit . Subject } ") ;
784784 e . Handled = true ;
785785 } ;
786786
You can’t perform that action at this time.
0 commit comments