mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-20 18:36:31 +08:00
Fix "Copy URL" for pasting into Terminal, closes #2853
This commit is contained in:
parent
cb047455a6
commit
6021ddf39e
1 changed files with 2 additions and 1 deletions
|
@ -128,7 +128,8 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
||||||
func copyURL() {
|
func copyURL() {
|
||||||
let pasteboard = NSPasteboard.general
|
let pasteboard = NSPasteboard.general
|
||||||
pasteboard.clearContents()
|
pasteboard.clearContents()
|
||||||
pasteboard.setData(url!.data(using: .utf8), forType: NSPasteboard.PasteboardType.URL)
|
pasteboard.setString(url!, forType: .URL)
|
||||||
|
pasteboard.setString(url!, forType: .string)
|
||||||
}
|
}
|
||||||
|
|
||||||
@objc
|
@objc
|
||||||
|
|
Loading…
Add table
Reference in a new issue