Replace selected text with pasted text causes exception aslo happen in 0.9.2
test steps:
1、input a\nb\nc

2、ctrl+a select all and ctrl+c to copy all
3、select from end to start,select c\nb and ctrl+v

4、ctrl+a select all and ctrl+v
exception like this:
Exception in thread "JavaFX Application Thread" java.lang.IndexOutOfBoundsException: [1, 0) is not a valid range within [0, 3)
at org.reactfx.util.Lists.checkRange(Lists.java:128)
at org.reactfx.util.Lists.checkRange(Lists.java:123)
at org.reactfx.util.FingerTree$Branch$1.subList(FingerTree.java:489)
at org.reactfx.collection.MaterializedListModification.lambda$0(MaterializedListModification.java:30)
at org.reactfx.util.Tuple2.map(Tuple2.java:31)
at org.reactfx.collection.MaterializedListModification.trim(MaterializedListModification.java:23)
at org.fxmisc.richtext.model.GenericEditableStyledDocumentBase$ParagraphList.lambda$observeInputs$0(GenericEditableStyledDocumentBase.java:46)
at org.reactfx.util.NonAccumulativeStreamNotifications.lambda$0(NotificationAccumulator.java:134)
Replace selected text with pasted text causes exception aslo happen in 0.9.2
test steps:


1、input a\nb\nc
2、ctrl+a select all and ctrl+c to copy all
3、select from end to start,select c\nb and ctrl+v
4、ctrl+a select all and ctrl+v
exception like this:
Exception in thread "JavaFX Application Thread" java.lang.IndexOutOfBoundsException: [1, 0) is not a valid range within [0, 3)
at org.reactfx.util.Lists.checkRange(Lists.java:128)
at org.reactfx.util.Lists.checkRange(Lists.java:123)
at org.reactfx.util.FingerTree$Branch$1.subList(FingerTree.java:489)
at org.reactfx.collection.MaterializedListModification.lambda$0(MaterializedListModification.java:30)
at org.reactfx.util.Tuple2.map(Tuple2.java:31)
at org.reactfx.collection.MaterializedListModification.trim(MaterializedListModification.java:23)
at org.fxmisc.richtext.model.GenericEditableStyledDocumentBase$ParagraphList.lambda$observeInputs$0(GenericEditableStyledDocumentBase.java:46)
at org.reactfx.util.NonAccumulativeStreamNotifications.lambda$0(NotificationAccumulator.java:134)