[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sup-talk] [PATCH] Fix search-for-next function when using Ruby 1.9
- To: Mark Alexander <marka@pobox.com>
- Subject: Re: [sup-talk] [PATCH] Fix search-for-next function when using Ruby 1.9
- From: Gaute Hope <eg@gaute.vetsj.com>
- Date: Fri, 17 May 2013 18:58:55 +0200
- Cc: sup-talk <sup-talk@rubyforge.org>
- In-reply-to: <1368809417-sup-3442@x200s>
- References: <1368809417-sup-3442@x200s>
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130403 Thunderbird/17.0.5
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