lib/widget/input_complete.c: refactoring: