Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Old:
- def index=(index)
- draw_item(@index) if @index >= 0
- @index = index
- draw_item(@index) if @index >= 0
- update_cursor
- call_update_help
- end
- ## New:
- def index=(index)
- last_index = @index
- @index = index
- draw_item(last_index) if last_index >= 0
- draw_item(@index) if @index >= 0
- update_cursor
- call_update_help
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement