aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorStefan Kangas <skangas@skangas.se>2012-09-09 14:28:49 +0200
committerStefan Kangas <skangas@skangas.se>2012-09-09 14:28:49 +0200
commit1e6179ff7b4724c5d907f9f922e8b9767c3f6b56 (patch)
treedf6673ce9c11ac05079e821df80b5ac7f6338fbf /lib
parentcee7d3e7a13ef25fc9da0e2dce07d95587b202da (diff)
Prompt.pm: Fix a syntax error
Diffstat (limited to 'lib')
-rwxr-xr-xlib/Fripost/Prompt.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Fripost/Prompt.pm b/lib/Fripost/Prompt.pm
index fbd39e6..50d2d51 100755
--- a/lib/Fripost/Prompt.pm
+++ b/lib/Fripost/Prompt.pm
@@ -67,8 +67,8 @@ sub prompt_if_undefined {
my $rewrite;
if (defined $must and $#$must >= 1 and $must->[0] eq 'rewrite') {
- shift $must;
- $rewrite = shift $must;
+ shift @$must;
+ $rewrite = shift @$must;
}
else {
$rewrite //= sub { $_ };