Lokaltog/powerline — pull request #407 by delphinus35 (2013-04-08 00:46:43+00:00)
Title: fix grad_list index

If `gradient_level` goes above 100%, `pick_gradient_value()` cause `IndexError`.

ex. I usually have \<50 unread email messages, and set `max_msgs => 50`. If I have \>50 unread messages by accident, powerline shows strings `list index out of range`.