summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm')
-rw-r--r--urpm/msg.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/msg.pm b/urpm/msg.pm
index e7315735..bff6be5f 100644
--- a/urpm/msg.pm
+++ b/urpm/msg.pm
@@ -73,7 +73,7 @@ sub message_input {
if ($opts{boolean}) {
$input =~ /^[$noexpr$yesexpr]*$/ and last;
} elsif ($opts{range}) {
- 1 <= $input && $input <= $opts{range} and last;
+ (defined $opts{range_min} ? $opts{range_min} : 1) <= $input && $input <= $opts{range} and last;
} else {
last;
}