
This code is taken from Massimo's comment in #1786 and MR !834. It doesn't fix a crash as this was already handled in !404, yet the missing prompt after hitting "clear" was clearly not consistent with how one expect a clear feature to work. At least now, we've got a prompt back immediately after clearing.