@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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xterm/xterm",
3
3
  "description": "Full xterm terminal, in your browser",
4
- "version": "5.5.0",
4
+ "version": "5.6.0-beta.1",
5
5
  "main": "lib/xterm.js",
6
6
  "style": "css/xterm.css",
7
7
  "types": "typings/xterm.d.ts",
@@ -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 end position to get the string if a new composition has started.
163
- input = this._textarea.value.substring(currentCompositionPosition.start, currentCompositionPosition.end);
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