@xterm/xterm 5.5.0 → 5.6.0-beta.2
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
|
|
@@ -2979,7 +2979,7 @@ export class InputHandler extends Disposable implements IInputHandler {
|
|
|
2979
2979
|
if (args[1]) {
|
|
2980
2980
|
return this._createHyperlink(args[0], args[1]);
|
|
2981
2981
|
}
|
|
2982
|
-
if (args[0]) {
|
|
2982
|
+
if (args[0].trim()) {
|
|
2983
2983
|
return false;
|
|
2984
2984
|
}
|
|
2985
2985
|
return this._finishHyperlink();
|