summaryrefslogtreecommitdiff
path: root/Applications/TextEditor/TextEditorWidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'Applications/TextEditor/TextEditorWidget.h')
-rw-r--r--Applications/TextEditor/TextEditorWidget.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Applications/TextEditor/TextEditorWidget.h b/Applications/TextEditor/TextEditorWidget.h
index 208b965931..dbeac28377 100644
--- a/Applications/TextEditor/TextEditorWidget.h
+++ b/Applications/TextEditor/TextEditorWidget.h
@@ -19,6 +19,8 @@ public:
void open_sesame(const String& path);
bool request_close();
+ GTextEditor& editor() { return *m_editor; }
+
private:
TextEditorWidget();
void set_path(const FileSystemPath& file);