lib/ruco/editor_area.rb in ruco-0.0.40 vs lib/ruco/editor_area.rb in ruco-0.0.41
- old
+ new
@@ -66,10 +66,11 @@
def screen_position
Position.new(@window.top, @window.left)
end
def screen_position=(pos)
- @window.top, @window.left = pos
+ @window.set_top(pos[0], @lines.size)
+ @window.left = pos[1]
end
def adjust_to_indentation(first, last=nil)
last ||= first
if selection
\ No newline at end of file