home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 December (Special) / PCWorld_2005-12_Special_cd.bin / Bezpecnost / lsti / lsti.exe / framework-2.5.exe / fsearch.al < prev    next >
Text File  |  2005-04-27  |  593b  |  24 lines

  1. # NOTE: Derived from lib/Term/ReadLine/Zoid/ViCommand.pm.
  2. # Changes made here will be lost when autosplit is run again.
  3. # See AutoSplit.pm.
  4. package Term::ReadLine::Zoid::ViCommand;
  5.  
  6. #line 904 "lib/Term/ReadLine/Zoid/ViCommand.pm (autosplit into blib/lib/auto/Term/ReadLine/Zoid/ViCommand/fsearch.al)"
  7. sub fsearch {
  8.     my ($self, $string) = @_;
  9.  
  10.     if (length $string) {
  11.         $$self{last_search} = ['f', $string, -1];
  12.         eval { qr/$string/ };
  13.         if ($@) {
  14.             $self->output($@);
  15.             return $self->bell;
  16.         }
  17.     }
  18.  
  19.     return $self->vi_N('n', undef, 'f');
  20. }
  21.  
  22. # end of Term::ReadLine::Zoid::ViCommand::fsearch
  23. 1;
  24.