From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Riesen Subject: Re: [PATCH] Add help.autocorrect to enable/disable autocorrecting Date: Wed, 23 Jul 2008 20:44:43 +0200 Message-ID: <20080723184443.GD5283@blimp.local> References: <20080722203730.GC5113@blimp.local> <20080722210354.GD5113@blimp.local> <20080722212633.GF5113@blimp.local> <20080722222510.GA4474@blimp.local> Reply-To: Alex Riesen Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: git@vger.kernel.org To: Johannes Schindelin X-From: git-owner@vger.kernel.org Wed Jul 23 20:45:53 2008 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1KLjLP-0000dh-QE for gcvg-git-2@gmane.org; Wed, 23 Jul 2008 20:45:48 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753161AbYGWSoq (ORCPT ); Wed, 23 Jul 2008 14:44:46 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753293AbYGWSoq (ORCPT ); Wed, 23 Jul 2008 14:44:46 -0400 Received: from mo-p05-ob.rzone.de ([81.169.146.180]:14578 "EHLO mo-p05-ob.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753083AbYGWSop (ORCPT ); Wed, 23 Jul 2008 14:44:45 -0400 X-RZG-CLASS-ID: mo05 X-RZG-AUTH: :YSxENQjhO8RswxTRIGdg201f5EC7 Received: from tigra.home (Faf34.f.strato-dslnet.de [195.4.175.52]) by post.webmailer.de (klopstock mo25) (RZmta 16.47) with ESMTP id 202385k6NG1BgB ; Wed, 23 Jul 2008 20:44:43 +0200 (MEST) (envelope-from: ) Received: from blimp (unknown [192.168.0.8]) by tigra.home (Postfix) with ESMTP id 58285277BD; Wed, 23 Jul 2008 20:44:43 +0200 (CEST) Received: by blimp (Postfix, from userid 1000) id 4E1E436D18; Wed, 23 Jul 2008 20:44:43 +0200 (CEST) Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17+20080114 (2008-01-14) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Johannes Schindelin, Wed, Jul 23, 2008 18:44:49 +0200: > > + n = 1; > > + while (n < main_cmds.cnt && > > + best_similarity == similarity(main_cmds.names[n]->name)) > > + ++n; > > Mini-nit: you never ask for the value of n, only if it is 1 or larger. So > you do not need to count... But I do, don't I? AFAICS, I use 0, 1 and >1 (this-these).