summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-09-21 17:07:04 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-09-21 17:07:04 +0200
commitf181e2ecb0c7df5dc5cb98d7310e79aa603a9ee7 (patch)
tree03bfc55cd3db0a710cd69bccfd76d7ab3afea246 /bin
parent2f6ab37acefe264eaf95c30764ce3ca9a882122d (diff)
restore -L / lines
Diffstat (limited to 'bin')
-rwxr-xr-xbin/efa-m11
1 files changed, 8 insertions, 3 deletions
diff --git a/bin/efa-m b/bin/efa-m
index f4211a3..77f80e1 100755
--- a/bin/efa-m
+++ b/bin/efa-m
@@ -251,7 +251,7 @@ sub show_lines {
for my $l ( $efa->lines ) {
- if ( ( @grep_lines and none { $l->name eq $_ } @grep_lines )
+ if ( ( @grep_lines and none { $l->number eq $_ } @grep_lines )
or ( @grep_mots and none { $l->mot_name eq $_ } @grep_mots ) )
{
next;
@@ -261,8 +261,13 @@ sub show_lines {
next;
}
- push( @output,
- [ $l->type, $l->name, $l->direction // q{}, q{}, $l->route // q{} ]
+ push(
+ @output,
+ [
+ $l->type, $l->number,
+ $l->direction // q{}, q{},
+ $l->route // q{}
+ ]
);
}