Skip to content

Commit

Permalink
core: disable history end-merge after leaving a text input as it caus…
Browse files Browse the repository at this point in the history
…ed troubles with consecutive auto-applied changes
  • Loading branch information
tom95 committed Sep 30, 2023
1 parent 008b33b commit 7c2872e
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/Morph.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,7 @@ Morph >> storeOn: aStream [
{ #category : #'*Sandblocks-Core' }
Morph >> submorphIndex [

self owner ifNil: [^ 1].
^ self owner submorphs indexOf: self
]

Expand Down
2 changes: 1 addition & 1 deletion packages/Sandblocks-Core/SBCursorText.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ SBCursorText >> applyCommandIn: anEditor [
" applying a command will cause a cursor change, however we are in the middle of a cursor change so prohibit any changes here "
currentCommand selectAfter: #none.
anEditor do: currentCommand]
ifFalse: [anEditor history noMoreMerge]
ifFalse: [SBToggledCode comment: '' active: 0 do: {[anEditor history noMoreMerge]}]
]

{ #category : #'as yet unclassified' }
Expand Down

0 comments on commit 7c2872e

Please sign in to comment.