Time: 11 June 2021, 8:56:28.364233 am
When accessing a text selection, avoid extra check for removal of oblivious text attributes to make those usable outside the context of #interactivePrintIt. Approximate slow-down is still about 2 orders of magnitude away from being noticed during user interactions (e.g. cut, copy). So, we are fine here. Empty selections (i.e. the normal blinking text cursor) are still very fast.
=============== Diff against Morphic-mt.1770 ===============
Item was changed:
----- Method: TextEditor>>selection (in category 'accessing-selection') -----
"Answer the text in the paragraph that is currently selected."
| result |
result := paragraph text copyFrom: self startIndex to: self stopIndex - 1.
+ result ifNotEmpty: [
- self class interactivePrintIt ifTrue: [
result removeAttributesThat: [:attr | attr isOblivious]].