summaryrefslogtreecommitdiff
path: root/lib/App/Raps2/UI.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-05-17 14:20:14 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-05-17 14:21:15 +0200
commit391929448038a478f23cfa28db528e1f4a1e60d9 (patch)
tree956c28ac7ead9b0852dbe2b716eff4fa8b356a6c /lib/App/Raps2/UI.pm
parent86d8310d5724632f2cd54723e9a2ced66bb80ba9 (diff)
Add "raps2 edit"
Diffstat (limited to 'lib/App/Raps2/UI.pm')
-rw-r--r--lib/App/Raps2/UI.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/App/Raps2/UI.pm b/lib/App/Raps2/UI.pm
index 089290b..9807f52 100644
--- a/lib/App/Raps2/UI.pm
+++ b/lib/App/Raps2/UI.pm
@@ -32,9 +32,7 @@ sub list {
sub read_line {
my ($self, $str, $pre) = @_;
- $pre //= q{};
-
- my $input = $self->{term_readline}->readline("${str}: ${pre}");
+ my $input = $self->{term_readline}->readline("${str}: ", $pre);
return $input;
}