|
|
|
|
@ -208,9 +208,10 @@ void Notebook::open(const boost::filesystem::path &file_path_, size_t notebook_i
|
|
|
|
|
}; |
|
|
|
|
const auto file_name = view->file_path.filename(); |
|
|
|
|
std::string prepend_current_view; |
|
|
|
|
size_t current_view_index = 0; |
|
|
|
|
for (size_t c = 0; c < size(); ++c) { |
|
|
|
|
if (source_views[c] == view) { |
|
|
|
|
update_label(c, prepend_current_view); |
|
|
|
|
current_view_index = c; |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
if (source_views[c]->file_path.filename() == file_name) { |
|
|
|
|
@ -229,6 +230,7 @@ void Notebook::open(const boost::filesystem::path &file_path_, size_t notebook_i
|
|
|
|
|
update_label(c, it2->string() + (diff > 0 ? "/.../" : "/")); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
update_label(current_view_index, prepend_current_view); |
|
|
|
|
update_status(view); |
|
|
|
|
}; |
|
|
|
|
source_views.back()->update_status_diagnostics=[this](Source::View* view) { |
|
|
|
|
|