From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [192.168.1.207] (c4C8F5BC1.dhcp.as2116.net. [193.91.143.76]) by mx.google.com with ESMTPSA id t4sm5197565lbe.7.2013.05.17.10.00.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 17 May 2013 10:00:15 -0700 (PDT) Message-ID: <519661CF.7040909@gaute.vetsj.com> Date: Fri, 17 May 2013 18:58:55 +0200 From: Gaute Hope User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130403 Thunderbird/17.0.5 MIME-Version: 1.0 To: Mark Alexander CC: sup-talk Subject: Re: [sup-talk] [PATCH] Fix search-for-next function when using Ruby 1.9 References: <1368809417-sup-3442@x200s> In-Reply-To: <1368809417-sup-3442@x200s> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Thanks, is merged into develop and line-0.13-develop. Regards, Gaute On fr. 17. mai 2013 kl. 18.51 +0200, Mark Alexander wrote: > [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