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_X.al < prev    next >
Text File  |  2005-04-27  |  573b  |  18 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 657 "lib/Term/ReadLine/Zoid/ViCommand.pm (autosplit into blib/lib/auto/Term/ReadLine/Zoid/ViCommand/vi_X.al)"
  7. sub vi_X {
  8.     my ($self, $key, $cnt) = @_;
  9.     if ($key eq 'X') {
  10.         return $self->bell if $$self{pos}[0] < $cnt;
  11.         $$self{pos}[0] -= $cnt;
  12.     }
  13.     $$self{killbuf} = substr $$self{lines}[ $$self{pos}[1] ], $$self{pos}[0], $cnt, '';
  14. }
  15.  
  16. # end of Term::ReadLine::Zoid::ViCommand::vi_X
  17. 1;
  18.