diff --git a/src/textfile_gui.h b/src/textfile_gui.h --- a/src/textfile_gui.h +++ b/src/textfile_gui.h @@ -42,6 +42,9 @@ struct TextfileWindow : public Window, M virtual void LoadTextfile(const std::string &textfile, Subdirectory dir); +protected: + void LoadText(std::string_view buf); + private: struct Line { int top; ///< Top scroll position.