commandline widget: correctly browse history with alt-h