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 / vi_repeat.al < prev    next >
Text File  |  2005-04-27  |  768b  |  21 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 363 "lib/Term/ReadLine/Zoid/ViCommand.pm (autosplit into blib/lib/auto/Term/ReadLine/Zoid/ViCommand/vi_repeat.al)"
  7. sub vi_repeat {
  8.     my ($self, undef, $cnt) = @_;
  9.     undef $cnt if $$self{vi_command} !~ /^$cnt/;
  10.     return $self->bell if ! length $$self{vi_last_cmd};
  11.     #print STDERR "repeat last command: $$self{vi_last_cmd}\n";
  12.     $$self{vi_last_cmd} =~ /^(\d*)(.)(.*)/;
  13.     die "BUG: we ain't gonna loop all day !" if $2 eq '.';
  14.     $$self{vi_command} = defined $cnt ? $cnt : $1 || '';
  15.     $self->unread_key($3);
  16.     $self->self_insert($2);
  17. }
  18.  
  19. # end of Term::ReadLine::Zoid::ViCommand::vi_repeat
  20. 1;
  21.