[squeak-dev] The Trunk: ToolBuilder-Morphic-mt.204.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Dec 21 08:03:56 UTC 2017


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

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

Name: ToolBuilder-Morphic-mt.204
Author: mt
Time: 21 December 2017, 9:03:48.515231 am
UUID: 0832e3f9-24fa-e347-b69e-9835e3ba58b4
Ancestors: ToolBuilder-Morphic-mt.203

Clean-up in Shout styling callback. 1) Use the correct way to recompute the selection. 2) Update comments.

=============== Diff against ToolBuilder-Morphic-mt.203 ===============

Item was changed:
  ----- Method: PluggableTextMorphPlus>>stylerStyled: (in category 'styling') -----
  stylerStyled: styledCopyOfText
+ 	"Sent after the styler completed styling the underlying text. The behavior is similar to #handleInteraction:event: but we do not have to copy text ore make those other checks."
+ 	
- 	"Sent after the styler completed styling the underlying text"
  	textMorph contents runs: styledCopyOfText runs .
+ 
- 	"textMorph paragraph recomposeFrom: 1 to: textMorph contents size delta: 0."     "caused chars to appear in wrong order esp. in demo mode. remove this line when sure it is fixed"
  	textMorph paragraph composeAll.
+ 	textMorph editor recomputeSelection.
  	textMorph updateFromParagraph.
+ 
- 	selectionInterval 
- 		ifNotNil:[
- 			textMorph editor
- 				selectInvisiblyFrom: selectionInterval first to: selectionInterval last;
- 				storeSelectionInParagraph;
- 				setEmphasisHere].
  	textMorph editor blinkParen.
+ 	self scrollSelectionIntoView.!
- 	self scrollSelectionIntoView!



More information about the Squeak-dev mailing list