 extension BaseSourceEditorController: NSTextViewDelegate {
 	func undoManager(for view: NSTextView) -> UndoManager? {
 		if let currentDocument = context?.currentDocument.value {
-			print("here \(currentDocument)");
-			return nil
-		} //return currentDocument.undoManager }
+			Log.info("undoManager asked for with no current document", .app)
+			return currentDocument.undoManager
+		}
 		return editor?.undoManager
 	}
 	

		willChangeValue(forKey: "canExecute")
		didChangeValue(forKey: "canExecute")
	}
}

// MARK: Actions

		guard !ignoreTextStorageNotifications else { return }
		ignoreTextStorageNotifications = true
		defer { ignoreTextStorageNotifications = false }
		contentsChanged(textStorage, range: editedRange, changeLength: delta)
	}
}

