diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 20f2061..ab35f2d 100644 --- a/src/main.rs +++ b/src/main.rs | |||
@@ -89,7 +89,8 @@ fn search(s: &mut Cursive) { | |||
89 | .on_submit(|s, name|{ | 89 | .on_submit(|s, name|{ |
90 | s.pop_layer(); | 90 | s.pop_layer(); |
91 | on_submit(s, name); | 91 | on_submit(s, name); |
92 | }); | 92 | }) |
93 | .scrollable(); | ||
93 | s.add_layer(Dialog::around(choose_result) | 94 | s.add_layer(Dialog::around(choose_result) |
94 | .title("Search Results") | 95 | .title("Search Results") |
95 | .button("Cancel", |s| match s.pop_layer() { _ => () }) | 96 | .button("Cancel", |s| match s.pop_layer() { _ => () }) |
@@ -141,6 +142,7 @@ fn on_submit(s: &mut Cursive, name: &str) { | |||
141 | let links = SelectView::<String>::new() | 142 | let links = SelectView::<String>::new() |
142 | .with_all_str(link_vec) | 143 | .with_all_str(link_vec) |
143 | .on_submit(on_submit) | 144 | .on_submit(on_submit) |
145 | .scrollable() | ||
144 | .fixed_width(20); | 146 | .fixed_width(20); |
145 | 147 | ||
146 | s.add_layer( | 148 | s.add_layer( |