fixed issue #35: text selection now follows background-color toggle