my @chords = ();
while (<X>) {
chomp;
- if (s/^!//) { push @chords, 1; } else { push @chords, 0; }
+ if (s/^! //) { push @chords, 1; } else { push @chords, 0; }
push @lines, $_;
}
close X;
my ($w,$i) = @_;
my $win = $w->{"win"};
my $l = $w->{"lines"}->[$i];
- if ($w->{"linetypes"}->[$i]) { $win->attrset($attr_chord); }
+ if ($w->{"chords"}->[$i]) { $win->attrset($attr_chord); }
if (length $l < $w->{"w"}) {
$win->addstr($i-$w->{"top"}, 0, $l);
$win->clrtoeol;