If nothing is selected, automatically select the entire buffer