From 010a4e2140744d492fe27254051df1901b0a3c8e Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Tue, 24 Jul 2018 23:35:37 -0700 Subject: Update for latest Cursive --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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) { .on_submit(|s, name|{ s.pop_layer(); on_submit(s, name); - }); + }) + .scrollable(); s.add_layer(Dialog::around(choose_result) .title("Search Results") .button("Cancel", |s| match s.pop_layer() { _ => () }) @@ -141,6 +142,7 @@ fn on_submit(s: &mut Cursive, name: &str) { let links = SelectView::::new() .with_all_str(link_vec) .on_submit(on_submit) + .scrollable() .fixed_width(20); s.add_layer( -- cgit v1.2.3