diff options
author | Blaž Hrastnik | 2021-02-19 08:46:43 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-02-19 08:46:43 +0000 |
commit | 7877647cf0812380623b0087fbd7bea0ee9fae20 (patch) | |
tree | a386d8b5534310763dbab12b9e21ac893b431f94 /helix-term/src/application.rs | |
parent | 1e1dae1c11bf00b56213995679647ff30b664a17 (diff) |
Allow closing individual views.
Diffstat (limited to 'helix-term/src/application.rs')
-rw-r--r-- | helix-term/src/application.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/helix-term/src/application.rs b/helix-term/src/application.rs index 90391024..c82724a5 100644 --- a/helix-term/src/application.rs +++ b/helix-term/src/application.rs @@ -82,7 +82,7 @@ impl Application { self.render(); loop { - if self.editor.should_close { + if self.editor.should_close() { break; } @@ -116,9 +116,8 @@ impl Application { None => panic!(), }; - if should_redraw { + if should_redraw && !self.editor.should_close() { self.render(); - // calling render twice here fixes it for some reason } } |