From 07412986834f08ce3a70878a332ec2e81d836b86 Mon Sep 17 00:00:00 2001 From: NerdyPepper Date: Thu, 28 Jun 2018 18:24:45 +0530 Subject: Use formatted articles in TextViews --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 9add0c0..3f78541 100644 --- a/src/main.rs +++ b/src/main.rs @@ -33,6 +33,7 @@ fn search(s: &mut Cursive){ .on_submit(on_submit); s.add_layer(Dialog::around(choose_result) .title("Search Results") + .button("Cancel", |s| match s.pop_layer() { _ => () }) .fixed_size(( 45,8 ))); } @@ -68,7 +69,7 @@ fn on_submit(s: &mut Cursive, name: &String) { s.add_layer( Dialog::around( - OnEventView::new(TextView::new(extract)) + OnEventView::new(TextView::new(extract_formatter(extract))) .on_event('t', |s| match s.pop_layer() { _ => () }) ) .title(heading) -- cgit v1.2.3