@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/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.179",
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": "8a1760b924e503e961be8f5b0f6e0e4caab5a4df"
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();
@@ -6,4 +6,4 @@
6
6
  /**
7
7
  * The xterm.js version. This is updated by the publish script from package.json.
8
8
  */
9
- export const XTERM_VERSION = '6.1.0-beta.179';
9
+ export const XTERM_VERSION = '6.1.0-beta.180';