File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -3508,9 +3508,15 @@ fn yank_joined_to_clipboard_impl(
3508
3508
. map ( Cow :: into_owned)
3509
3509
. collect ( ) ;
3510
3510
3511
+ let clipboard_text = match clipboard_type {
3512
+ ClipboardType :: Clipboard => "system clipboard" ,
3513
+ ClipboardType :: Selection => "primary clipboard" ,
3514
+ } ;
3515
+
3511
3516
let msg = format ! (
3512
- "joined and yanked {} selection(s) to system clipboard " ,
3517
+ "joined and yanked {} selection(s) to {} " ,
3513
3518
values. len( ) ,
3519
+ clipboard_text,
3514
3520
) ;
3515
3521
3516
3522
let joined = values. join ( separator) ;
@@ -3539,6 +3545,11 @@ fn yank_main_selection_to_clipboard_impl(
3539
3545
let ( view, doc) = current ! ( editor) ;
3540
3546
let text = doc. text ( ) . slice ( ..) ;
3541
3547
3548
+ let message_text = match clipboard_type {
3549
+ ClipboardType :: Clipboard => "yanked main selection to system clipboard" ,
3550
+ ClipboardType :: Selection => "yanked main selection to primary clipboard" ,
3551
+ } ;
3552
+
3542
3553
let value = doc. selection ( view. id ) . primary ( ) . fragment ( text) ;
3543
3554
3544
3555
if let Err ( e) = editor
@@ -3548,7 +3559,7 @@ fn yank_main_selection_to_clipboard_impl(
3548
3559
bail ! ( "Couldn't set system clipboard content: {}" , e) ;
3549
3560
}
3550
3561
3551
- editor. set_status ( "yanked main selection to system clipboard" ) ;
3562
+ editor. set_status ( message_text ) ;
3552
3563
Ok ( ( ) )
3553
3564
}
3554
3565
You can’t perform that action at this time.
0 commit comments