Permalink
Browse files

Ahh, the readline docs to the rescue.

  • Loading branch information...
1 parent b6fec68 commit a1b311efe53d278ade1864d3f31b031a4fba21a8 @jettero committed Jul 23, 2014
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/Term/ReadLine/CLISH.pm
@@ -418,6 +418,12 @@ THE_WHIRLYGIGS: {
$this->safe_talk(sub{ debug(" matches text=$text; state=$state; \$m[$state]=$return;") }) if $ENV{CLISH_DEBUG};
$attribs->{completion_append_character} = $text =~ m/^(["'])/ ? "$1 " : ' ';
+ if( not $return and not $state ) {
+ # NOTE: this is only necessary when filename completion is not
+ # desired
+ $attribs->{attempted_completion_over} = 1;
+ }
+
return $return;
};

0 comments on commit a1b311e

Please sign in to comment.