diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index f83fc83..d96119e 100644 --- a/src/main.rs +++ b/src/main.rs | |||
@@ -13,7 +13,7 @@ use crate::utils::{load_configuration_file, AppConfig}; | |||
13 | 13 | ||
14 | use clap::{App as ClapApp, Arg}; | 14 | use clap::{App as ClapApp, Arg}; |
15 | use cursive::termion; | 15 | use cursive::termion; |
16 | use cursive::views::NamedView; | 16 | use cursive::views::{LinearLayout, NamedView}; |
17 | use lazy_static::lazy_static; | 17 | use lazy_static::lazy_static; |
18 | 18 | ||
19 | lazy_static! { | 19 | lazy_static! { |
@@ -52,7 +52,11 @@ fn main() { | |||
52 | } else { | 52 | } else { |
53 | let mut s = termion().unwrap(); | 53 | let mut s = termion().unwrap(); |
54 | let app = App::load_state(); | 54 | let app = App::load_state(); |
55 | s.add_layer(NamedView::new("Main", app)); | 55 | let layout = NamedView::new( |
56 | "Frame", | ||
57 | LinearLayout::vertical().child(NamedView::new("Main", app)), | ||
58 | ); | ||
59 | s.add_layer(layout); | ||
56 | s.add_global_callback(':', |s| open_command_window(s)); | 60 | s.add_global_callback(':', |s| open_command_window(s)); |
57 | 61 | ||
58 | s.set_theme(theme::theme_gen()); | 62 | s.set_theme(theme::theme_gen()); |