[GREENFOOT-715] IndexOutOfBoundsException when pressing delete-previous-word shortcut.
If you have a keybinding to the delete-previous-word action, an IndexOutOfBoundsException will be fired when pressing that shortcut.
Exception in thread "JavaFX Application Thread" java.lang.IndexOutOfBoundsException: [113, 5) is not a valid range within [0, 180)Exception in thread "JavaFX Application Thread"
{quote}java.lang.IndexOutOfBoundsException: [113, 5) is not a valid range within [0, 180) at org.reactfx.util.Lists.checkRange(Lists.java:128) at org.reactfx.util.Lists.checkRange(Lists.java:123) at org.fxmisc.richtext.model.ReadOnlyStyledDocument.ensureValidRange(ReadOnlyStyledDocument.java:564) at org.fxmisc.richtext.model.ReadOnlyStyledDocument.replace(ReadOnlyStyledDocument.java:398) at org.fxmisc.richtext.model.ReadOnlyStyledDocument.replace(ReadOnlyStyledDocument.java:378) at org.fxmisc.richtext.model.GenericEditableStyledDocumentBase.replace(GenericEditableStyledDocumentBase.java:142) at org.fxmisc.richtext.model.SimpleEditableStyledDocument.replace(SimpleEditableStyledDocument.java:10) at org.fxmisc.richtext.GenericStyledArea.replace(GenericStyledArea.java:1195) at org.fxmisc.richtext.GenericStyledArea.replaceText(GenericStyledArea.java:1182) at bluej.editor.moe.MoeActions.lambda$deleteWordAction$44(MoeActions.java:1834) at bluej.editor.moe.MoeActions1.actionPerformed(MoeActions.java:1173) at bluej.editor.moe.MoeActions.lambda
null$2(MoeActions.java:183)
{quote}
Issue metadata
- Issue type: Task
- Priority: Medium