# NOTE: Derived from lib/Term/ReadLine/Zoid/ViCommand.pm.
# Changes made here will be lost when autosplit is run again.
# See AutoSplit.pm.
package Term::ReadLine::Zoid::ViCommand;

#line 680 "lib/Term/ReadLine/Zoid/ViCommand.pm (autosplit into blib/lib/auto/Term/ReadLine/Zoid/ViCommand/vi_D.al)"
sub vi_D {
	my ($self, $key, $cnt) = @_;
	my $pos = [ @{$$self{pos}} ]; # force copy
	if ($key eq 'D') { $self->end_of_line }
	else { return unless $self->_do_motion('d', $cnt) }
	if ($$self{vi_command} =~ /dd$/) {
		$$self{killbuf} = splice(@{$$self{lines}}, $$self{pos}[1], 1)."\n";
	}
	else { $$self{killbuf} = $self->substring('', $pos, $$self{pos}) }
}

# end of Term::ReadLine::Zoid::ViCommand::vi_D
1;
