Fix Buggy Outdent

Fix buggy outdent without selection after text.