Fix reading clipboard internally for OSC52

This commit is contained in:
Zachary Yedidia
2020-07-04 20:54:27 -04:00
parent cf86f6848f
commit d8596919a6
7 changed files with 48 additions and 26 deletions

View File

@@ -1142,8 +1142,9 @@ func (h *BufPane) Paste() bool {
clip, err := clipboard.Read(clipboard.ClipboardReg)
if err != nil {
InfoBar.Error(err)
} else {
h.paste(clip)
}
h.paste(clip)
h.Relocate()
return true
}
@@ -1153,8 +1154,9 @@ func (h *BufPane) PastePrimary() bool {
clip, err := clipboard.Read(clipboard.PrimaryReg)
if err != nil {
InfoBar.Error(err)
} else {
h.paste(clip)
}
h.paste(clip)
h.Relocate()
return true
}