X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=inline;f=git-send-email.perl;h=ba39d393843733b46f309deb105c90cabcee2cb1;hb=6211988f77ab20cc8705fb8c9ecb72ba166b80da;hp=4c87c20c158fe3edfd0b770f1855e67e20038e3b;hpb=659db3f673fe199bad6ce9cc625d3a1b098bfbcf;p=git.git diff --git a/git-send-email.perl b/git-send-email.perl index 4c87c20c1..ba39d3938 100755 --- a/git-send-email.perl +++ b/git-send-email.perl @@ -178,11 +178,10 @@ my $prompting = 0; if (!defined $from) { $from = $author || $committer; do { - $_ = $term->readline("Who should the emails appear to be from? ", - $from); + $_ = $term->readline("Who should the emails appear to be from? [$from] "); } while (!defined $_); - $from = $_; + $from = $_ if ($_); print "Emails will be sent from: ", $from, "\n"; $prompting++; }