summaryrefslogtreecommitdiff
path: root/usr.bin/vi/perl_scripts/forall.pl
blob: b9f85013b17ded1b605eff4ef7857188f30835df (plain)
1
2
3
4
5
6
7
8
9
10
sub forall {
  my ($code) = shift;
  my ($i) = $VI::StartLine-1;
  while (++$i <= $VI::StopLine) {
    $_ = $curscr->GetLine($i);
    VI::SetLine($VI::ScreenId, $i, $_) if(&$code);
  }
}

1;