Don't wrap code hint list until all items have been shown

This is for #2622