input: fix nested commands

Regression from today.