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 2cc3901 commit 9fa7d98Copy full SHA for 9fa7d98
1 file changed
web/src/engine/predictive-text/worker-thread/src/main/correction/search-quotient-spur.ts
@@ -359,6 +359,12 @@ export abstract class SearchQuotientSpur implements SearchQuotientNode {
359
if(this.inputSource) {
360
const inputId = this.inputSource.segment.transitionId;
361
if(inputId && parentSources.length > 0 && parentSources[parentSources.length - 1].segment.transitionId == inputId) {
362
+ // Fuse the input sources!
363
+ const tailSrc = parentSources[parentSources.length - 1];
364
+ tailSrc.segment.end = this.inputSource.segment.end;
365
+ if(tailSrc.segment.end) {
366
+ delete tailSrc.segment.end;
367
+ }
368
return parentSources;
369
}
370
0 commit comments