The Trunk: Morphic-mt.1771.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Morphic-mt.1771.mcz

commits-2
Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.1771.mcz

==================== Summary ====================

Name: Morphic-mt.1771
Author: mt
Time: 11 June 2021, 8:56:28.364233 am
UUID: 0708f93f-e82a-5c4a-bf37-3a0ef7a58587
Ancestors: Morphic-mt.1770

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') -----
  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]].
  ^ result!