diff options
-rw-r--r-- | Cargo.toml | 4 | ||||
-rw-r--r-- | src/app.rs | 6 |
2 files changed, 5 insertions, 5 deletions
@@ -1,7 +1,7 @@ | |||
1 | [package] | 1 | [package] |
2 | name = "track" | 2 | name = "dijo" |
3 | version = "0.1.0" | 3 | version = "0.1.0" |
4 | authors = ["Akshay <nerdypepper@tuta.io>"] | 4 | authors = ["Akshay <nerdy@peppe.rs>"] |
5 | edition = "2018" | 5 | edition = "2018" |
6 | 6 | ||
7 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | 7 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html |
@@ -116,7 +116,7 @@ impl App { | |||
116 | 0 | 116 | 0 |
117 | } | 117 | } |
118 | }; | 118 | }; |
119 | Vec2::new(width, height) | 119 | Vec2::new(width, height + 2) |
120 | } | 120 | } |
121 | 121 | ||
122 | pub fn load_state() -> Self { | 122 | pub fn load_state() -> Self { |
@@ -164,7 +164,7 @@ impl View for App { | |||
164 | i.draw(&printer.offset(offset).focused(self.focus == idx)); | 164 | i.draw(&printer.offset(offset).focused(self.focus == idx)); |
165 | offset = offset.map_x(|x| x + CONFIGURATION.view_width); | 165 | offset = offset.map_x(|x| x + CONFIGURATION.view_width); |
166 | } | 166 | } |
167 | offset = offset.map_x(|_| 0).map_y(|_| self.max_size().y - 1); | 167 | offset = offset.map_x(|_| 0).map_y(|_| self.max_size().y - 3); |
168 | printer.print(offset, &self.status()); | 168 | printer.print(offset, &self.status()); |
169 | } | 169 | } |
170 | 170 | ||
@@ -186,7 +186,7 @@ impl View for App { | |||
186 | 0 | 186 | 0 |
187 | } | 187 | } |
188 | }; | 188 | }; |
189 | Vec2::new(width, height) | 189 | Vec2::new(width, height + 2) |
190 | } | 190 | } |
191 | 191 | ||
192 | fn take_focus(&mut self, _: Direction) -> bool { | 192 | fn take_focus(&mut self, _: Direction) -> bool { |