Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] [PATCH] Fix search-for-next function when using Ruby 1.9
@ 2013-05-17 16:51 Mark Alexander
  2013-05-17 16:58 ` Gaute Hope
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Alexander @ 2013-05-17 16:51 UTC (permalink / raw)
  To: sup-talk

[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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-05-17 17:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-17 16:51 [sup-talk] [PATCH] Fix search-for-next function when using Ruby 1.9 Mark Alexander
2013-05-17 16:58 ` Gaute Hope

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox