bug fix for indentation and only use long way to indent when selection is empty