feat(input): expand Araso Han/Eng contractions, acronyms, typo recovery, and fast cursor-tail replacement
This commit is contained in:
parent
51bf664302
commit
f403111256
80 changed files with 1449 additions and 458 deletions
|
|
@ -838,11 +838,11 @@ export class TerminalKeystrokeTracker {
|
|||
this._committed = this._committed.slice(0, this._unreplacedStart) + convertedTail
|
||||
} else if (
|
||||
this._unreplacedStart === 0 &&
|
||||
raw.startsWith(this.currentPrefix()) &&
|
||||
raw.length > this.currentPrefix().length
|
||||
this._lastXtermValue === '' &&
|
||||
this._committed.length === 0 &&
|
||||
this._composingKeys.length === 0
|
||||
) {
|
||||
this._committed = raw
|
||||
this._composingKeys = ''
|
||||
}
|
||||
}
|
||||
this._lastXtermValue = raw
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue