Fix some bugs in list_item priority

Previously:
when asking for priority, pressing ESC will reset the
value to empty string.
Now :
pressing ESC will keep the last value

Previously:
When a filter is reset, the priority listing screws up temporarily.
Now :
Fixed.