File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " leth"
3- version = " 0.4.1 "
3+ version = " 0.5.0 "
44authors = [" fcd <femnad@users.noreply.github.com>" ]
55edition = " 2018"
66
Original file line number Diff line number Diff line change @@ -54,11 +54,12 @@ pub fn main() {
5454 let item_reader = SkimItemReader :: default ( ) ;
5555 let items = item_reader. of_bufread ( Cursor :: new ( items) ) ;
5656
57- let selected_items = Skim :: run_with ( & options, Some ( items) )
58- . map ( |out| out. selected_items )
59- . unwrap_or_else ( || Vec :: new ( ) ) ;
57+ let output = Skim :: run_with ( & options, Some ( items) ) . unwrap ( ) ;
58+ if output. is_abort {
59+ return ;
60+ }
6061
61- for item in selected_items. iter ( ) {
62+ for item in output . selected_items . iter ( ) {
6263 let url = item. clone ( ) ;
6364 Command :: new ( "firefox" )
6465 . arg ( url. output ( ) . as_ref ( ) )
You can’t perform that action at this time.
0 commit comments