Fix yank canonical, short link feedback message

This commit is contained in:
Jeff King 2018-07-03 23:40:06 +01:00 committed by Oliver Blanthorn
parent c0c0abbcab
commit de62321495
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -2100,14 +2100,14 @@ export async function clipboard(excmd: "open" | "yank" | "yankshort" | "yankcano
} }
if (urls.length > 0) { if (urls.length > 0) {
await yank(urls[0]) await yank(urls[0])
fillcmdline_tmp("3000", "# " + content + " copied to clipboard.") fillcmdline_tmp("3000", "# " + urls[0] + " copied to clipboard.")
break break
} }
case "yankcanon": case "yankcanon":
urls = await geturlsforlinks("rel", "canonical") urls = await geturlsforlinks("rel", "canonical")
if (urls.length > 0) { if (urls.length > 0) {
await yank(urls[0]) await yank(urls[0])
fillcmdline_tmp("3000", "# " + content + " copied to clipboard.") fillcmdline_tmp("3000", "# " + urls[0] + " copied to clipboard.")
break break
} }
case "yank": case "yank":