Skip to content

Commit

Permalink
REPL: Offer all completions if we can't find a last identifier
Browse files Browse the repository at this point in the history
Fixes RT #125520
  • Loading branch information
hoelzro committed Sep 17, 2016
1 parent ab68f82 commit 25caab2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/REPL.pm
Expand Up @@ -148,6 +148,8 @@ do {
method extract-last-word(Str $line) {
my $m = $line ~~ /^ $<prefix>=[.*?] <|w>$<last_word>=[\w*]$/;

return ( $line, '') unless $m;

( ~$m<prefix>, ~$m<last_word> )
}

Expand Down

0 comments on commit 25caab2

Please sign in to comment.