]> git.cworth.org Git - sup/commitdiff
bugfix in in-buffer search: subclass search_goto_line not being called
authorWilliam Morgan <wmorgan-sup@masanjin.net>
Thu, 1 May 2008 22:25:48 +0000 (15:25 -0700)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Thu, 1 May 2008 22:27:42 +0000 (15:27 -0700)
lib/sup/modes/scroll-mode.rb

index 922bf92b46169f4d5e0dde916312c10588e0d2ec..86804efc49d9125e3abe1461dee0a30634c27b62 100644 (file)
@@ -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