Skip to content

Commit

Permalink
fixed opposite delimiter
Browse files Browse the repository at this point in the history
  • Loading branch information
plantec committed Mar 19, 2024
1 parent ea102db commit 1c10f08
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/Album/AlbOppositeDelimiterUpdater.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,11 @@ AlbOppositeDelimiterUpdater >> subtextElementInvalidateEvent: anEvent [
{ #category : #'opposite delimiter' }
AlbOppositeDelimiterUpdater >> updateOppositeDelimiterIn: anEditorElement [

oppositeDelim ifNotNil: [
oppositeDelim removeFromParent.
oppositeDelim := nil ].
anEditorElement selection ifNotEmpty: [ ^ self ].
oppositeDelim := self createOppositeDelimiterIn: anEditorElement.
oppositeDelim ifNotNil: [ anEditorElement addChild: oppositeDelim]
anEditorElement enqueueTask: (BlTaskAction new action: [
oppositeDelim ifNotNil: [
oppositeDelim removeFromParent.
oppositeDelim := nil ].
anEditorElement selection ifNotEmpty: [ ^ self ].
oppositeDelim := self createOppositeDelimiterIn: anEditorElement.
oppositeDelim ifNotNil: [ anEditorElement addChild: oppositeDelim ] ])
]

0 comments on commit 1c10f08

Please sign in to comment.