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_C.al
< prev
next >
Wrap
Text File
|
2005-04-27
|
738b
|
19 lines
# 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 585 "lib/Term/ReadLine/Zoid/ViCommand.pm (autosplit into blib/lib/auto/Term/ReadLine/Zoid/ViCommand/vi_C.al)"
sub vi_C { # like vi_D but without killbuf and with insert mode
my ($self, $key, $cnt) = @_;
my $pos = [ @{$$self{pos}} ]; # force copy
if ($key eq 'C') { $self->end_of_line }
else { return unless $self->_do_motion('c', $cnt) }
if ($$self{vi_command} =~ /cc$/) { splice(@{$$self{lines}}, $$self{pos}[1], 1) }
else { $self->substring('', $pos, $$self{pos}) }
$self->switch_mode();
}
# end of Term::ReadLine::Zoid::ViCommand::vi_C
1;