Advertisement
neonblack

Luna Menu Fix

Oct 4th, 2013
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.38 KB | None | 0 0
  1. ## Old:
  2.  
  3.   def index=(index)
  4.     draw_item(@index) if @index >= 0
  5.     @index = index
  6.     draw_item(@index) if @index >= 0
  7.     update_cursor
  8.     call_update_help
  9.   end
  10.  
  11.  
  12. ## New:
  13.  
  14.   def index=(index)
  15.     last_index = @index
  16.     @index = index
  17.     draw_item(last_index) if last_index >= 0
  18.     draw_item(@index) if @index >= 0
  19.     update_cursor
  20.     call_update_help
  21.   end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement