From bc310e27650802646c5aa7d0b5b97abd4c481397 Mon Sep 17 00:00:00 2001 From: rinsuki <428rinsuki+git@gmail.com> Date: Fri, 7 May 2021 09:21:19 +0900 Subject: [PATCH] fix: Enable undo/redo in NewPostViewController --- Sources/Mac/App/NewPost/NewPostViewController.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/Mac/App/NewPost/NewPostViewController.swift b/Sources/Mac/App/NewPost/NewPostViewController.swift index 2ba62c816..acc8a3fdd 100644 --- a/Sources/Mac/App/NewPost/NewPostViewController.swift +++ b/Sources/Mac/App/NewPost/NewPostViewController.swift @@ -32,6 +32,7 @@ class NewPostViewController: NSViewController { $0.isRichText = false $0.autoresizingMask = .width $0.font = NSFont.systemFont(ofSize: NSFont.systemFontSize) + $0.allowsUndo = true } lazy var scrollView = NSScrollView() ※ { $0.documentView = textView