Skip to content

Commit

Permalink
st: fix editing setup in morphexample; core: allow changing contents …
Browse files Browse the repository at this point in the history
…of suggestion items
  • Loading branch information
tom95 committed Aug 9, 2023
1 parent c81c585 commit 6879034
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/Sandblocks-Core/SBSuggestionItem.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ SBSuggestionItem >> selector: aString label: anotherString [

| container |
container := self firstSubmorph.
container removeAllMorphs.
selector := aString.
label := anotherString.
container addMorphBack: (SBStringMorph new
Expand Down
2 changes: 1 addition & 1 deletion packages/Sandblocks-Smalltalk/SBStGrammarHandler.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ SBStGrammarHandler >> wrapInMessageSend: aString [
| msg |
self block isExpression ifFalse: [^ self].
msg := self class messageSendClass new
receiver: (self block newNullBlock label: 'expr')
receiver: (self newNullBlock label: 'expr')
selector: aString
arguments: (aString numArgs > 0
ifTrue: [(1 to: aString numArgs) collect: [:i | self block newNullBlock label: 'arg']]
Expand Down

0 comments on commit 6879034

Please sign in to comment.