Merge pull request #1865 from rektrex/trim_clip_url_for_open

trim url for p and P commands
This commit is contained in:
Oliver Blanthorn 2019-09-18 09:28:19 +01:00 committed by GitHub
commit c8b0f18cb3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2909,13 +2909,13 @@ export async function clipboard(excmd: "open" | "yank" | "yankshort" | "yankcano
case "open":
url = await getclip()
if (url) {
open(url)
open(url.trim())
}
break
case "tabopen":
url = await getclip()
if (url) {
tabopen(url)
tabopen(url.trim())
}
break
case "xselpaste":