aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src/editor.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-view/src/editor.rs')
-rw-r--r--helix-view/src/editor.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs
index 444e4bf7..c292caed 100644
--- a/helix-view/src/editor.rs
+++ b/helix-view/src/editor.rs
@@ -6,11 +6,15 @@ use anyhow::Error;
pub struct Editor {
pub view: Option<View>,
+ pub should_close: bool,
}
impl Editor {
pub fn new() -> Self {
- Self { view: None }
+ Self {
+ view: None,
+ should_close: false,
+ }
}
pub fn open(&mut self, path: PathBuf, size: (u16, u16)) -> Result<(), Error> {