Fix various regressions in the command system

After reworking the highlighting of search results in the history window I noticed that I must have broken the grep command. When I wanted to verify that I noticed that a couple of other regressions rendered the command system unusable anyway. I'm off the hook! ;-)

This merge request fixes three discovered regressions. All of them pertain only to the master branch.

Merge request reports

Loading
Loading