Expand input
Fix #530 no_split and auto_preview problem