widgets.commitmsg: Factor out the 'hint' text behavior