From 7babc9c5b1da856776b2b2071eb0a5da560cf8f9 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Sat, 21 Mar 2015 22:29:00 +0100 Subject: [PATCH] Command: Let zero bulk denote infinite value --- src/commands/Command.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/Command.cpp b/src/commands/Command.cpp index 74619ad38..4aa4ee12c 100644 --- a/src/commands/Command.cpp +++ b/src/commands/Command.cpp @@ -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)