diff options
author | Alexandre Bury <[email protected]> | 2018-07-25 07:35:37 +0100 |
---|---|---|
committer | Alexandre Bury <[email protected]> | 2018-07-25 07:35:37 +0100 |
commit | 010a4e2140744d492fe27254051df1901b0a3c8e (patch) | |
tree | 9ae936cdf0389ec07868121a61064b2b86808e33 /src | |
parent | 84df2c33177829725a9f731ac7c64944d86fa5ee (diff) |
Update for latest Cursive
Diffstat (limited to 'src')
-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( |