From 75a0e4509a70055851b085f3f7293ae1cf48164c Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Sat, 6 Feb 2021 00:55:04 +0100 Subject: Fix performance and undo --- Map/Views/MapTextEditor.swift | 1 + 1 file changed, 1 insertion(+) (limited to 'Map/Views/MapTextEditor.swift') diff --git a/Map/Views/MapTextEditor.swift b/Map/Views/MapTextEditor.swift index e030d64..4fbff82 100644 --- a/Map/Views/MapTextEditor.swift +++ b/Map/Views/MapTextEditor.swift @@ -30,6 +30,7 @@ class MapTextEditorController: NSViewController { scrollView.translatesAutoresizingMaskIntoConstraints = false + textView.allowsUndo = true textView.delegate = self textView.textStorage?.delegate = self textView.string = self.text -- cgit