Merge "Early exit if the target region is empty" into sc-v2-dev
This commit is contained in:
@@ -782,7 +782,7 @@ public class TextLine {
|
||||
|
||||
int spanStart = runStart;
|
||||
int spanLimit;
|
||||
if (mSpanned == null) {
|
||||
if (mSpanned == null || runStart == runLimit) {
|
||||
spanLimit = runLimit;
|
||||
} else {
|
||||
int target = after ? offset + 1 : offset;
|
||||
|
||||
Reference in New Issue
Block a user