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_topic.al
< prev
next >
Wrap
Text File
|
2005-04-27
|
743b
|
22 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 631 "lib/Term/ReadLine/Zoid/ViCommand.pm (autosplit into blib/lib/auto/Term/ReadLine/Zoid/ViCommand/vi_topic.al)"
sub vi_topic {
my ($self, undef, $cnt) = @_;
$cnt = ($cnt == 1 and $$self{vi_command} !~ /^1/) ? -1 : $cnt-1;
return $self->bell unless @{$$self{history}};
my $buffer = join "\n", $$self{history}[0];
$buffer =~ s/^\s+|\s+$//g;
my @words = split /\s+/, $buffer;
my $string = " $words[$cnt]";
$self->substring($string);
$$self{pos}[0] .= length $string;
$self->switch_mode();
}
# end of Term::ReadLine::Zoid::ViCommand::vi_topic
1;