home *** CD-ROM | disk | FTP | other *** search
- # 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 440 "lib/Term/ReadLine/Zoid/ViCommand.pm (autosplit into blib/lib/auto/Term/ReadLine/Zoid/ViCommand/vi_E.al)"
- sub vi_E { # no error, just end of line
- my ($self, $key, $cnt) = @_;
- my $w = ($key eq 'E') ? '\\S' : '\\w';
- my $l = $$self{lines}[ $$self{pos}[1] ];
- for (1..$cnt) {
- if ($l =~ /^.{$$self{pos}[0]}($w?.*?$w+)/) { $$self{pos}[0] += length($1) - 1 }
- else {
- $self->end_of_line;
- last;
- }
- }
- return 1;
- }
-
- # end of Term::ReadLine::Zoid::ViCommand::vi_E
- 1;
-