Fix #1: moving processing repeatable-pending to pre-command-hook