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_B.al
< prev
next >
Wrap
Text File
|
2005-04-27
|
685b
|
24 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 462 "lib/Term/ReadLine/Zoid/ViCommand.pm (autosplit into blib/lib/auto/Term/ReadLine/Zoid/ViCommand/vi_B.al)"
sub vi_B { # no error, just begin of line
my ($self, $key, $cnt) = @_;
my $w = ($key eq 'B') ? '\\S' : '\\w';
my $l = $$self{lines}[ $$self{pos}[1] ];
for (1..$cnt) {
$l = substr($l, 0, $$self{pos}[0]);
if ($l =~ /($w+[^$w]*)$/) { $$self{pos}[0] -= length $1 }
else {
$self->beginning_of_line;
last;
}
}
return 1;
}
# end of Term::ReadLine::Zoid::ViCommand::vi_B
1;