Manuscript (Case [Issue]22850) _Inbox - RubOpeningClosingDelimiterDecorator(RubParagraphDecorator)>>doesNotUnderstand: #extent

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

Manuscript (Case [Issue]22850) _Inbox - RubOpeningClosingDelimiterDecorator(RubParagraphDecorator)>>doesNotUnderstand: #extent

Pharo Issue Tracker
Manuscript Notification
avatar
Bug in Project:  _Inbox: Not Spam  •  You are subscribed to this case
I do not like this trick with does not understand because closingDelimiters
are not implemented so I do not understand how this method can work.

drawOnAthensCanvas: anAthensCanvas
"Send all visible lines to the displayScanner for display"

| cursorPosition delimiter oppositePos rect previousOppositeBlock |
cursorPosition := self paragraph pointIndex.
cursorPosition ifNil: [ ^ self ].
cursorPosition < 2
ifTrue: [ ^ self ].
(self closingDelimiters includes: (delimiter := self paragraph string at: cursorPosition - 1))
ifFalse: [
(self openingDelimiters includes: (delimiter := self paragraph string at: cursorPosition - 1))
ifFalse: [ ^ self ] ].
oppositePos := self positionOfOppositeDelimiter: delimiter startingAt: cursorPosition in: anAthensCanvas clipRect.
oppositePos = 0
ifTrue: [ ^ self ].
previousOppositeBlock := self characterBlockForIndex: oppositePos.
rect := previousOppositeBlock.
rect privateSetCorner: (rect corner min: anAthensCanvas clipRect bottomRight) + (0 @ 1).
rect privateSetOrigin: rect origin.
anAthensCanvas setPaint: RubTextSelectionColor oppositeDelimiterSelection backgroundColor.
anAthensCanvas setShape: rect surface expanded.
anAthensCanvas draw.
anAthensCanvas setShape: (rect surface insetBy: 0.5).
(anAthensCanvas setStrokePaint: Color black)
width: 1.
anAthensCanvas draw.
Priority Priority: 2 – Really Important Status Status: Work Needed
Assigned To Assigned to: Everyone Milestone Milestone: Pharo7.0

Go to Case
No longer need updates? Unsubscribe from this case.

Don't want Manuscript notifications anymore? Update your preferences.

Manuscript

_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
https://lists.gforge.inria.fr/mailman/listinfo/pharo-bugtracker