aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAkshay <[email protected]>2018-07-26 13:54:00 +0100
committerGitHub <[email protected]>2018-07-26 13:54:00 +0100
commit769b323073a523414fd8bbfa1c3a734529196c1d (patch)
tree9ae936cdf0389ec07868121a61064b2b86808e33 /src
parent84df2c33177829725a9f731ac7c64944d86fa5ee (diff)
parent010a4e2140744d492fe27254051df1901b0a3c8e (diff)
Merge pull request #9 from gyscos/master
Update for latest Cursive
Diffstat (limited to 'src')
-rw-r--r--src/main.rs4
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(