Skip to content

Commit 8a4c4da

Browse files
committed
Use deleteAll + appendString:
1 parent ea15d6f commit 8a4c4da

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/Spec-Toplo/SpToploAbstractTextAdapter.class.st

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,11 @@ SpToploAbstractTextAdapter >> subscribeToWidget [
154154

155155
{ #category : #accessing }
156156
SpToploAbstractTextAdapter >> text: aString [
157-
"Delete current string and insert a new one, without replacing the instance of `BlRopedText` to do not mess with the subscriptions."
157+
"Make the widget show aString. Do it without replacing the instance of `BlRopedText` in widget, since we are subscribed to that instance."
158158

159-
widget text replaceByString: aString
159+
widget text
160+
deleteAll;
161+
appendString: aString
160162
]
161163

162164
{ #category : #simulating }

0 commit comments

Comments
 (0)