Support save prompt on back arrow (#1270)

* Support save prompt on back arrow
* Add lifetime warning comment
This commit is contained in:
Kyle Reed 2023-07-13 09:38:40 -07:00 committed by GitHub
parent e1a79a0ff1
commit 4985d836ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 51 additions and 34 deletions

View file

@ -229,10 +229,7 @@ class TextEditorView : public View {
void show_save_prompt(std::function<void()> continuation);
void prepare_for_write();
void create_temp_file() const;
void delete_temp_file() const;
void save_temp_file();
std::filesystem::path get_temp_path() const;
NavigationView& nav_;
std::unique_ptr<FileWrapper> file_{};