@xterm/xterm 6.1.0-beta.179 → 6.1.0-beta.180
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/lib/xterm.js +1 -1
- package/lib/xterm.js.map +1 -1
- package/lib/xterm.mjs +2 -2
- package/lib/xterm.mjs.map +3 -3
- package/package.json +2 -2
- package/src/browser/input/CompositionHelper.ts +6 -0
- package/src/common/Version.ts +1 -1
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": "6.1.0-beta.
|
|
4
|
+
"version": "6.1.0-beta.180",
|
|
5
5
|
"main": "lib/xterm.js",
|
|
6
6
|
"module": "lib/xterm.mjs",
|
|
7
7
|
"style": "css/xterm.css",
|
|
@@ -119,5 +119,5 @@
|
|
|
119
119
|
"ws": "^8.2.3",
|
|
120
120
|
"xterm-benchmark": "^0.3.1"
|
|
121
121
|
},
|
|
122
|
-
"commit": "
|
|
122
|
+
"commit": "783c4a34d296480f29ecddfb8743e4e542e29cf5"
|
|
123
123
|
}
|
|
@@ -239,6 +239,12 @@ export class CompositionHelper {
|
|
|
239
239
|
this._compositionView.style.lineHeight = cellHeight + 'px';
|
|
240
240
|
this._compositionView.style.fontFamily = this._optionsService.rawOptions.fontFamily;
|
|
241
241
|
this._compositionView.style.fontSize = this._optionsService.rawOptions.fontSize + 'px';
|
|
242
|
+
// Limit the composition view width to the space between the cursor and
|
|
243
|
+
// the terminal's right edge, preventing it from overflowing the terminal.
|
|
244
|
+
const maxWidth = this._bufferService.cols * this._renderService.dimensions.css.cell.width - cursorLeft;
|
|
245
|
+
this._compositionView.style.maxWidth = maxWidth + 'px';
|
|
246
|
+
this._compositionView.style.overflow = 'hidden';
|
|
247
|
+
this._compositionView.style.direction = 'rtl';
|
|
242
248
|
// Sync the textarea to the exact position of the composition view so the IME knows where the
|
|
243
249
|
// text is.
|
|
244
250
|
const compositionViewBounds = this._compositionView.getBoundingClientRect();
|
package/src/common/Version.ts
CHANGED