The Trunk: Morphic-eem.1686.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-eem.1686.mcz

commits-2
Eliot Miranda uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-eem.1686.mcz

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

Name: Morphic-eem.1686
Author: eem
Time: 25 September 2020, 7:14:07.295188 pm
UUID: 203a1355-2c2d-4600-a378-868b5c5fff82
Ancestors: Morphic-eem.1685

Make TextEditor>>starteArray[Put:] robust when used on uninitialized or stale instances.

=============== Diff against Morphic-eem.1685 ===============

Item was changed:
  ----- Method: TextEditor>>stateArray (in category 'initialize-release') -----
  stateArray
+ ^[ {ChangeText.
- ^ {ChangeText.
  FindText.
  history ifNil: [TextEditorCommandHistory new]. "Convert old instances"
  self markIndex to: self pointIndex - 1.
  self startOfTyping.
  emphasisHere.
+ lastParenLocation}]
+ on: MessageNotUnderstood
+ do: [:ex| ex resume: nil]!
- lastParenLocation}!

Item was changed:
  ----- Method: TextEditor>>stateArrayPut: (in category 'initialize-release') -----
  stateArrayPut: stateArray
- | sel |
  ChangeText := stateArray at: 1.
  FindText := stateArray at: 2.
  history := stateArray at: 3.
+ (stateArray at: 4) ifNotNil: [:sel| self selectFrom: sel first to: sel last].
- sel := stateArray at: 4.
- self selectFrom: sel first to: sel last.
  beginTypeInIndex := stateArray at: 5.
  emphasisHere := stateArray at: 6.
  lastParenLocation := stateArray at: 7!