aboutsummaryrefslogtreecommitdiff
path: root/src/command.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/command.rs')
-rw-r--r--src/command.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/command.rs b/src/command.rs
index bfd09d8..1b159eb 100644
--- a/src/command.rs
+++ b/src/command.rs
@@ -8,7 +8,8 @@ use cursive::views::{EditView, LinearLayout, OnEventView, TextView};
8use cursive::Cursive; 8use cursive::Cursive;
9 9
10use crate::app::App; 10use crate::app::App;
11use crate::utils::{GRID_WIDTH, VIEW_WIDTH}; 11use crate::CONFIGURATION;
12use crate::utils::VIEW_WIDTH;
12 13
13static COMMANDS: &'static [&'static str] = &[ 14static COMMANDS: &'static [&'static str] = &[
14 "add", 15 "add",
@@ -69,7 +70,7 @@ pub fn open_command_window(s: &mut Cursive) {
69 } 70 }
70 }, 71 },
71 ) 72 )
72 .fixed_width(VIEW_WIDTH * GRID_WIDTH); 73 .fixed_width(VIEW_WIDTH * CONFIGURATION.grid_size());
73 s.call_on_name("Frame", |view: &mut LinearLayout| { 74 s.call_on_name("Frame", |view: &mut LinearLayout| {
74 let mut commandline = LinearLayout::horizontal() 75 let mut commandline = LinearLayout::horizontal()
75 .child(TextView::new(":")) 76 .child(TextView::new(":"))