Update history UI when typing commands.