Do not added "{}" around copied tokens.

This commit is contained in:
Damiano Galassi committed 2018-03-07 14:51:04 +01:00
1 parent 19c6139562
commit 519fa17893
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -133,7 +133,7 @@ class OutputPrefsViewController: NSViewController, NSTokenFieldDelegate {
if let data = try? JSONEncoder().encode(tokens) {
pboard.setData(data, forType: pasteboardType)
}
let string = tokens.reduce("", { "\($0)/{\($1.text)}" })
let string = tokens.reduce("", { "\($0)/\($1.text)" })
pboard.setString(string, forType: NSPasteboard.PasteboardType.string)
return true
} else {