diff options
author | Roopesh Chander <roop@roopc.net> | 2019-03-22 15:31:02 +0530 |
---|---|---|
committer | Roopesh Chander <roop@roopc.net> | 2019-03-22 15:31:02 +0530 |
commit | dbd5ea1ff08ec96e2609151a88a702197dff40b7 (patch) | |
tree | 61cffc2ffe5733f64232f9f896ee4eb441559de5 /WireGuard | |
parent | macOS: On Add new, Exclude Private IPs should remain hidden (diff) | |
download | wireguard-apple-dbd5ea1ff08ec96e2609151a88a702197dff40b7.tar.xz wireguard-apple-dbd5ea1ff08ec96e2609151a88a702197dff40b7.zip |
macOS: Syntax highlighter: Swift can bridge c strings automatically
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard')
-rw-r--r-- | WireGuard/WireGuard/UI/macOS/View/ConfTextStorage.swift | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/WireGuard/WireGuard/UI/macOS/View/ConfTextStorage.swift b/WireGuard/WireGuard/UI/macOS/View/ConfTextStorage.swift index 077ee1e..2219759 100644 --- a/WireGuard/WireGuard/UI/macOS/View/ConfTextStorage.swift +++ b/WireGuard/WireGuard/UI/macOS/View/ConfTextStorage.swift @@ -143,7 +143,7 @@ class ConfTextStorage: NSTextStorage { .font: defaultFont ] backingStore.setAttributes(defaultAttributes, range: fullTextRange) - var spans = highlight_config(backingStore.string.cString(using: String.Encoding.utf8))! + var spans = highlight_config(backingStore.string)! evaluateExcludePrivateIPs(highlightSpans: spans) while spans.pointee.type != HighlightEnd { |