Skip to content

Commit

Permalink
Support all in one_line_edit mode, to view/edit all the build files.
Browse files Browse the repository at this point in the history
Extends 2743869
  • Loading branch information
trizen committed Mar 13, 2020
1 parent 2743869 commit 069f132
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions trizen
Original file line number Diff line number Diff line change
Expand Up @@ -1376,8 +1376,10 @@ sub show_and_edit_text_files ($info) {
}

my %aliases;
@aliases{1 .. scalar(@build_files)} = @build_files;

@aliases{1 .. scalar(@build_files)} = @build_files;
@aliases{map { lc($_) } @build_files} = @build_files;
$aliases{all} = \@build_files;

my $input = (
$lconfig{noconfirm}
Expand All @@ -1387,7 +1389,8 @@ sub show_and_edit_text_files ($info) {

my @selected = select_packages_from_input(lc($input), \%aliases, \@build_files, 0);

@build_files = @selected;
@build_files = map { ref($_) eq 'ARRAY' ? @$_ : $_ } @selected;

say '' if (@build_files and !$lconfig{noedit});
}

Expand Down

0 comments on commit 069f132

Please sign in to comment.