[poe-commits] SF.net SVN: poe: [1908] trunk/poe/lib/POE/Wheel/ReadLine.pm
Brought to you by:
rcaputo
From: <rc...@us...> - 2006-03-28 04:31:41
|
Revision: 1908 Author: rcaputo Date: 2006-03-27 20:31:29 -0800 (Mon, 27 Mar 2006) ViewCVS: http://svn.sourceforge.net/poe/?rev=1908&view=rev Log Message: ----------- Applied Jeff Pinyan's patch to fix tab completion when the only match for a prefix is the full string of the match. Prior to the patch, Wheel::ReadLine would just ring the terminal bell and not display any matches. Modified Paths: -------------- trunk/poe/lib/POE/Wheel/ReadLine.pm Modified: trunk/poe/lib/POE/Wheel/ReadLine.pm =================================================================== --- trunk/poe/lib/POE/Wheel/ReadLine.pm 2006-03-27 17:41:50 UTC (rev 1907) +++ trunk/poe/lib/POE/Wheel/ReadLine.pm 2006-03-28 04:31:29 UTC (rev 1908) @@ -2266,7 +2266,7 @@ curs_left(length($rest)-length($partial)); $self->[SELF_CURSOR_INPUT] += length($partial)-length($lookfor); $self->[SELF_CURSOR_DISPLAY] += length($partial)-length($lookfor); - return $self->rl_ding; + return $self->rl_ding if @poss == 1; } if ($self->[SELF_LAST] !~ /complete/ && !$self->option('show-all-if-ambiguous')) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |