Command: Let zero bulk denote infinite value
This commit is contained in:
committed by
Paul Beckingham
parent
f5af3368a9
commit
7babc9c5b1
@@ -323,8 +323,8 @@ bool Command::permission (
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 1 < Quantity < bulk modifications have optional confirmation, in the (y/n/a/q)
|
// 1 < Quantity < bulk modifications have optional confirmation, in the (y/n/a/q)
|
||||||
// style.
|
// style. Bulk = 0 denotes infinite bulk.
|
||||||
if (quantity < bulk && (!_needs_confirm || !confirmation))
|
if ((bulk == 0 || quantity < bulk) && (!_needs_confirm || !confirmation))
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if (context.verbose ("blank") && !_first_iteration)
|
if (context.verbose ("blank") && !_first_iteration)
|
||||||
|
|||||||
Reference in New Issue
Block a user