speller: max_code_length as an additional constraint when auto_select is true;
directly commit auto-selected half when used with express editor.