allow toolbar button states to change when selection is collapsed

This pull request allows for a config option that will make button states update even when the selection is collapsed.

Use case: imagine that you want to know what toolbar should be active in the range that the cursor is in, even when the cursor has no selection.