From 27cff8be26cff7da7381a1bcb07250f98e35c326 Mon Sep 17 00:00:00 2001 From: eidheim Date: Tue, 23 Jun 2015 18:00:11 +0200 Subject: [PATCH] Did not intend to delete this function in last commit. --- juci/notebook.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/juci/notebook.cc b/juci/notebook.cc index b2fb0b8..1042816 100644 --- a/juci/notebook.cc +++ b/juci/notebook.cc @@ -372,6 +372,10 @@ void Notebook::Controller::set_source_handlers(Source::Controller& controller) { }); } +std::string Notebook::Controller::CurrentPagePath(){ + return text_vec_.at(CurrentPage())->parser.file_path; +} + bool Notebook::Controller:: OnSaveFile() { std::string path=text_vec_.at(CurrentPage())->view->file_path; return OnSaveFile(path);