diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-02-19 11:11:38 -0500 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-02-19 11:11:53 -0500 |
commit | de40c6907b7b7a8ee2683e9fc3df837f901ceb54 (patch) | |
tree | fc996dbfc721ebacebb1306c2985fdddd95bc554 /src/context.rs | |
parent | 122ec6efd37dc6edb94e00f61d66469a91dcd84a (diff) |
change how tab closing works
- if there is only 1 tab, then joshuto quits on tab close
Diffstat (limited to 'src/context.rs')
-rw-r--r-- | src/context.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/context.rs b/src/context.rs index 36c4bca..863acbc 100644 --- a/src/context.rs +++ b/src/context.rs @@ -10,6 +10,7 @@ pub struct JoshutoContext { pub views: JoshutoView, pub curr_tab_index: usize, pub tabs: Vec<JoshutoTab>, + pub exit: bool, pub config_t: config::JoshutoConfig, } @@ -28,6 +29,7 @@ impl JoshutoContext { views, curr_tab_index: 0, tabs: Vec::new(), + exit: false, config_t, } } |