From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.52.177.71 with SMTP id co7csp119954vdc; Fri, 17 May 2013 09:58:41 -0700 (PDT) X-Received: by 10.236.103.201 with SMTP id f49mr27180386yhg.55.1368809921069; Fri, 17 May 2013 09:58:41 -0700 (PDT) Return-Path: Received: from rubyforge.org ([50.56.192.79]) by mx.google.com with ESMTP id d28si10959457yhn.76.2013.05.17.09.58.40 for ; Fri, 17 May 2013 09:58:41 -0700 (PDT) Received-SPF: pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 50.56.192.79 as permitted sender) client-ip=50.56.192.79; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-talk-bounces@rubyforge.org designates 50.56.192.79 as permitted sender) smtp.mail=sup-talk-bounces@rubyforge.org; dkim=neutral (bad format) header.i=@pobox.com Received: from localhost.localdomain (localhost [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 6665C2E12C; Fri, 17 May 2013 16:58:41 +0000 (UTC) X-Greylist: delayed 366 seconds by postgrey-1.31 at rubyforge; Fri, 17 May 2013 16:58:19 UTC Received: from smtp.pobox.com (b-pb-sasl-quonix.pobox.com [208.72.237.35]) by rubyforge.org (Postfix) with ESMTP id 142522E0BC for ; Fri, 17 May 2013 16:58:19 +0000 (UTC) Received: from smtp.pobox.com (unknown [127.0.0.1]) by b-sasl-quonix.pobox.com (Postfix) with ESMTP id 55AED1DCEB for ; Fri, 17 May 2013 16:51:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=content-type :from:to:subject:date:message-id:content-transfer-encoding; s= sasl; bh=xcu4CWBYxK6eZrp0tvENvjucOY8=; b=BepE8T9E/8xk5PKdasl6XdI wWP2f5/4AJP4aPF86tbA+p6gMynlOIVBn6YgFHjXttosisxRj6xsY+9GvU9ahbFQ uF55V917TzaMQ+Y5jOTNLSijIQVEXnjaXc09x3gFSXV5Qc9RRdmXxann4edWPOgY 2v1ZMWi/nndDGRVph0io= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=content-type :from:to:subject:date:message-id:content-transfer-encoding; q= dns; s=sasl; b=IUAk3lq+bUSpQY1tCs2MpUudpn/sw0q1BOA2jwyGt13GTO+mc kxAkiVFayEOSa3jGk8VKakQ3oYvuavm0ycxHFzIaqauueNRwIT5lTVt+H1aDmVVw jAhCHkkxvrVgZ6JKOZCoGnaTyz3HTGCaK5y34p5MUjGuhayzIaX/QVN/Uo= Received: from b-pb-sasl-quonix.pobox.com (unknown [127.0.0.1]) by b-sasl-quonix.pobox.com (Postfix) with ESMTP id 49CB91DCEA for ; Fri, 17 May 2013 16:51:59 +0000 (UTC) Received: from localhost (unknown [76.19.85.15]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by b-sasl-quonix.pobox.com (Postfix) with ESMTPSA id E55C01DCE7 for ; Fri, 17 May 2013 16:51:58 +0000 (UTC) From: Mark Alexander To: sup-talk Date: Fri, 17 May 2013 12:51:57 -0400 Message-Id: <1368809417-sup-3442@x200s> User-Agent: Sup/git X-Pobox-Relay-ID: 16ECE2B4-BF12-11E2-8C56-E56BAAC0D69C-04141195!b-pb-sasl-quonix.pobox.com Subject: [sup-talk] [PATCH] Fix search-for-next function when using Ruby 1.9 X-BeenThere: sup-talk@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: User & developer discussion of Sup List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-talk-bounces@rubyforge.org Errors-To: sup-talk-bounces@rubyforge.org [Note: I've submitted a pull request for this fix.] The use of the 'n' key to search for the next occurrence of a string stopped working when running sup in Ruby 1.9. This simple patch fixes that problem. --- lib/sup/buffer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sup/buffer.rb b/lib/sup/buffer.rb index 444589a..859e0c7 100644 --- a/lib/sup/buffer.rb +++ b/lib/sup/buffer.rb @@ -271,7 +271,7 @@ EOS def handle_input c if @focus_buf - if @focus_buf.mode.in_search? && c != CONTINUE_IN_BUFFER_SEARCH_KEY[0] + if @focus_buf.mode.in_search? && c != CONTINUE_IN_BUFFER_SEARCH_KEY.ord @focus_buf.mode.cancel_search! @focus_buf.mark_dirty end _______________________________________________ sup-talk mailing list sup-talk@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-talk