Simplify autocomplete drawing code
Fix crash when moving through inventory with an empty inventory