8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6d6035 commit 3c37d8aCopy full SHA for 3c37d8a
src/Brick-Editor/BrEditorElement.class.st
@@ -84,6 +84,7 @@ BrEditorElement >> privateScrollWhenTextModified: anEvent [
84
ifEmpty: [ ^ self ].
85
86
aMaxIndex := (allCursors detectMax: [ :each | each position ]) position.
87
+ aMaxIndex := aMaxIndex min: self text size.
88
aTargetLine := (self text from: 1 to: aMaxIndex) lineCount.
89
90
self scrollToPosition: aTargetLine + 1
0 commit comments