diff options
author | Eric Kuck <eric@bluelinelabs.com> | 2019-01-07 14:47:27 +0200 |
---|---|---|
committer | Roopesh Chander <roop@roopc.net> | 2019-01-14 14:52:34 +0530 |
commit | 59bfa7f1df470af711187335f604422dfafca634 (patch) | |
tree | bcc80efb0af5a800fc830837616c63d06301a878 /WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift | |
parent | macOS: Tunnel edit view (diff) | |
download | wireguard-apple-59bfa7f1df470af711187335f604422dfafca634.tar.xz wireguard-apple-59bfa7f1df470af711187335f604422dfafca634.zip |
Added syntax highlighting conf textview
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
Diffstat (limited to '')
-rw-r--r-- | WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift index 52b80f6..47f488c 100644 --- a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift +++ b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelEditViewController.swift @@ -18,12 +18,12 @@ class TunnelEditViewController: NSViewController { }() let textView: NSTextView = { - let textView = NSTextView() + let textView = ConfTextView() let minWidth: CGFloat = 120 let minHeight: CGFloat = 60 textView.minSize = NSSize(width: 0, height: minHeight) textView.maxSize = NSSize(width: CGFloat.greatestFiniteMagnitude, height: CGFloat.greatestFiniteMagnitude) - textView.autoresizingMask = .width + textView.autoresizingMask = [.width, .height] textView.isHorizontallyResizable = true if let textContainer = textView.textContainer { textContainer.size = NSSize(width: minWidth, height: CGFloat.greatestFiniteMagnitude) |