aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src/editor.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2020-10-16 05:37:12 +0000
committerBlaž Hrastnik2020-10-16 05:37:12 +0000
commit49b4cdb5669b1c572b2b26af4353cb16cb1260f7 (patch)
tree46b8399f87bb9df099e63cb499a6513e5f3e52c8 /helix-view/src/editor.rs
parent49cc6c19244462b80beeac96be0ea0cc5bc1febc (diff)
Refactor command calling.
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> {