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_D.al < prev    next >
Text File  |  2005-04-27  |  707b  |  20 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 680 "lib/Term/ReadLine/Zoid/ViCommand.pm (autosplit into blib/lib/auto/Term/ReadLine/Zoid/ViCommand/vi_D.al)"
  7. sub vi_D {
  8.     my ($self, $key, $cnt) = @_;
  9.     my $pos = [ @{$$self{pos}} ]; # force copy
  10.     if ($key eq 'D') { $self->end_of_line }
  11.     else { return unless $self->_do_motion('d', $cnt) }
  12.     if ($$self{vi_command} =~ /dd$/) {
  13.         $$self{killbuf} = splice(@{$$self{lines}}, $$self{pos}[1], 1)."\n";
  14.     }
  15.     else { $$self{killbuf} = $self->substring('', $pos, $$self{pos}) }
  16. }
  17.  
  18. # end of Term::ReadLine::Zoid::ViCommand::vi_D
  19. 1;
  20.