diff options
author | Jeff Zhao <jeff.no.zhao@gmail.com> | 2021-06-20 20:50:48 -0400 |
---|---|---|
committer | Jeff Zhao <jeff.no.zhao@gmail.com> | 2021-06-20 20:50:48 -0400 |
commit | cf660136ea43e0a463fd270bfdaf8bb3ee606d9d (patch) | |
tree | 92fdc6783e51aa7907698c1829f812adcb9c0e78 | |
parent | 2cbb09549f487e77c8144accce4c21aec3bd315d (diff) | |
parent | da053083045a0e0fb6532554234c0679d286b1c5 (diff) |
Merge branch 'main' into dev
-rw-r--r-- | src/ui/widgets/tui_menu.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/widgets/tui_menu.rs b/src/ui/widgets/tui_menu.rs index 66fa38d..0cee287 100644 --- a/src/ui/widgets/tui_menu.rs +++ b/src/ui/widgets/tui_menu.rs @@ -29,7 +29,7 @@ impl<'a> Widget for TuiMenu<'a> { let text_iter = self.options.iter().chain(&[" "]); let area_x = area.x + 1; - for (y, text) in (1..area.height).zip(text_iter) { + for (y, text) in (area.y + 1..area.y + area.height).zip(text_iter) { buf.set_string(area_x, y, text, style); } } |