Fix bug where follow-up prompt of second command would split on whitespace

Bug:

    > 2x unlisted 6
    Please provide a short description: bar foo
    foo: No such product, user, or command.

Fixed:

    > 2x unlisted 6
    Please provide a short description: bar foo
    Pending:
    2x {
        6.00 bar foo
    }
    Enter username to pay 12.00; type 'abort' to abort.
This commit is contained in:
Juerd Waalboer 2020-09-07 02:27:25 +02:00
parent f312b31576
commit df771e22fd

View file

@ -185,7 +185,6 @@ OUTER: for (;;) {
length $input or redo PROMPT;
@words = ($split_input ? split(" ", $input) : $input);
$split_input = 0; # Only split 'outer' input.
}
WORD: for (;;) {
@ -194,6 +193,7 @@ OUTER: for (;;) {
my $word = shift @words;
push @retry, $word;
$split_input = 0; # Only split 'outer' input.
PLUGIN: for my $plugin (@plugins) {
my ($rv, @rvargs) = eval { $plugin->$method($cart, $word) };