The Trunk: MorphicExtras-nice.57.mcz

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

The Trunk: MorphicExtras-nice.57.mcz

commits-2
Nicolas Cellier uploaded a new version of MorphicExtras to project The Trunk:
http://source.squeak.org/trunk/MorphicExtras-nice.57.mcz

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

Name: MorphicExtras-nice.57
Author: nice
Time: 16 November 2009, 3:16:47 am
UUID: 498e12ba-840c-a04f-b5ff-2d8c2375afc8
Ancestors: MorphicExtras-dtl.56

Hack to handle crlf pair composition and display

=============== Diff against MorphicExtras-dtl.56 ===============

Item was changed:
  ----- Method: CanvasCharacterScanner>>cr (in category 'stop conditions') -----
  cr
  "When a carriage return is encountered, simply increment the pointer
  into the paragraph."
 
- lastIndex_ lastIndex + 1.
  pendingKernX := 0.
+ (lastIndex < text size and: [(text at: lastIndex) = CR and: [(text at: lastIndex+1) = Character lf]])
+ ifTrue: [lastIndex := lastIndex + 2]
+ ifFalse: [lastIndex := lastIndex + 1].
  ^false!