Fix #54.

* Don't apply text attributes to line sentinels.
* Do a better job of deciding what the "current" attributes should be when selection starts or ends on line boundaries.