]> git.lizzy.rs Git - micro.git/commitdiff
Add message if xclip/xsel not found
authorZachary Yedidia <zyedidia@gmail.com>
Mon, 30 Dec 2019 02:43:29 +0000 (21:43 -0500)
committerZachary Yedidia <zyedidia@gmail.com>
Mon, 30 Dec 2019 02:43:29 +0000 (21:43 -0500)
Ref #1236
Fixes #1031

internal/action/actions.go

index 733321d1f222483d5ec8e7c37e64693899c4ab31..85a62ddec0029cc1b6aac07646ca98079e950443 100644 (file)
@@ -810,7 +810,11 @@ func (h *BufPane) Copy() bool {
        if h.Cursor.HasSelection() {
                h.Cursor.CopySelection("clipboard")
                h.freshClip = true
-               InfoBar.Message("Copied selection")
+               if clipboard.Unsupported {
+                       InfoBar.Message("Copied selection (install xclip for external clipboard)")
+               } else {
+                       InfoBar.Message("Copied selection")
+               }
        }
        h.Relocate()
        return true