sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 6eaa50c46fedcd20ebe420d9eff953c6503013c6
parent 5281145c4ecb5295fcdc87b5043bd8c525ccd1aa
Author: William Morgan <wmorgan-sup@masanjin.net>
Date:   Thu,  1 May 2008 15:25:48 -0700

bugfix in in-buffer search: subclass search_goto_line not being called

Diffstat:
M lib/sup/modes/scroll-mode.rb | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/sup/modes/scroll-mode.rb b/lib/sup/modes/scroll-mode.rb
@@ -85,15 +85,16 @@ class ScrollMode < Mode
     continue_search_in_buffer
   end
 
-  ## subclasses can override these two!
+  ## subclasses can override these three!
   def search_goto_pos line, leftcol, rightcol
-    jump_to_line line
+    search_goto_line line
 
     if rightcol > self.rightcol # if it's occluded...
       jump_to_col [rightcol - buffer.content_width + 1, 0].max # move right
     end
   end
   def search_start_line; @topline end
+  def search_goto_line line; jump_to_line line end
 
   def col_left
     return unless @leftcol > 0