Command: Let zero bulk denote infinite value

This commit is contained in:
Tomas Babej 2015-03-21 22:29:00 +01:00 committed by Paul Beckingham
parent f5af3368a9
commit 7babc9c5b1

View file

@ -323,8 +323,8 @@ bool Command::permission (
}
// 1 < Quantity < bulk modifications have optional confirmation, in the (y/n/a/q)
// style.
if (quantity < bulk && (!_needs_confirm || !confirmation))
// style. Bulk = 0 denotes infinite bulk.
if ((bulk == 0 || quantity < bulk) && (!_needs_confirm || !confirmation))
return true;
if (context.verbose ("blank") && !_first_iteration)