Add message if xclip/xsel not found

Ref #1236
Fixes #1031
This commit is contained in:
Zachary Yedidia
2019-12-29 21:43:29 -05:00
parent ff24ad5fa8
commit 9b03a3dc6d

View File

@@ -810,7 +810,11 @@ func (h *BufPane) Copy() bool {
if h.Cursor.HasSelection() { if h.Cursor.HasSelection() {
h.Cursor.CopySelection("clipboard") h.Cursor.CopySelection("clipboard")
h.freshClip = true 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() h.Relocate()
return true return true