@xterm/xterm 5.5.0 → 5.6.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -159,8 +159,9 @@ export class CompositionHelper {
|
|
|
159
159
|
// otherwise input characters can be duplicated. (Issue #3191)
|
|
160
160
|
currentCompositionPosition.start += this._dataAlreadySent.length;
|
|
161
161
|
if (this._isComposing) {
|
|
162
|
-
// Use the
|
|
163
|
-
|
|
162
|
+
// Use the start position of the new composition to get the string
|
|
163
|
+
// if a new composition has started.
|
|
164
|
+
input = this._textarea.value.substring(currentCompositionPosition.start, this._compositionPosition.start);
|
|
164
165
|
} else {
|
|
165
166
|
// Don't use the end position here in order to pick up any characters after the
|
|
166
167
|
// composition has finished, for example when typing a non-composition character
|