aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs8
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
14use clap::{App as ClapApp, Arg}; 14use clap::{App as ClapApp, Arg};
15use cursive::termion; 15use cursive::termion;
16use cursive::views::NamedView; 16use cursive::views::{LinearLayout, NamedView};
17use lazy_static::lazy_static; 17use lazy_static::lazy_static;
18 18
19lazy_static! { 19lazy_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());