From 7b5d1e3d46e94262a9c0fd3a01ab4685aea9d12d Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 1 May 2021 15:10:54 -0400 Subject: Added bash completion, amongst others --- src/utils.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/utils.cc') diff --git a/src/utils.cc b/src/utils.cc index a44eced..f58dc61 100644 --- a/src/utils.cc +++ b/src/utils.cc @@ -72,6 +72,9 @@ std::vector> utils::copper2coins(int coppers) { coppers -= amnt.second * largest.second; ret.push_back(amnt); } + if(ret.empty()) { + ret.push_back({"cp", 0}); + } return ret; } -- cgit v1.2.3