]> git.lizzy.rs Git - micro.git/commitdiff
Add xclip message for pasting if unsupported
authorZachary Yedidia <zyedidia@gmail.com>
Tue, 31 Dec 2019 21:12:39 +0000 (16:12 -0500)
committerZachary Yedidia <zyedidia@gmail.com>
Tue, 31 Dec 2019 21:12:39 +0000 (16:12 -0500)
internal/action/actions.go

index ed2ad367dae092f8f9f57bcc1e296da310153aea..925c97e8b97d2a20feae8f1697490a97127ae56f 100644 (file)
@@ -986,7 +986,11 @@ func (h *BufPane) paste(clip string) {
        h.Buf.Insert(h.Cursor.Loc, clip)
        // h.Cursor.Loc = h.Cursor.Loc.Move(Count(clip), h.Buf)
        h.freshClip = false
-       InfoBar.Message("Pasted clipboard")
+       if clipboard.Unsupported {
+               InfoBar.Message("Pasted clipboard (install xclip for external clipboard)")
+       } else {
+               InfoBar.Message("Pasted clipboard")
+       }
 }
 
 // JumpToMatchingBrace moves the cursor to the matching brace if it is