From: Alex Riesen Date: Sat, 07 Jun 2008 17:51:03 GMT Subject: Re: [TOY PATCH] git wrapper: show similar command names for an unknown command Message-ID: <20080607175103.GA5822@steel.home> In-Reply-To: Johannes Schindelin, Sat, Jun 07, 2008 17:04:14 +0200: > - for (i = 0; i < main_cmds.cnt; i++) { > + for (i = 0; i < main_cmds.cnt && i < 5; i++) { I accidentally considered "i" just the index in the global command table. Of course it is better :)