Add xclip message for pasting if unsupported

This commit is contained in:
Zachary Yedidia 2019-12-31 16:12:39 -05:00
parent f874377573
commit d83b912b3b

View 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