mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Fix usage of allowWhitespaceOnlySelection variable
This commit is contained in:
@@ -267,7 +267,7 @@ export class SelectionManager extends EventEmitter implements ISelectionManager
|
||||
public selectWordAtCursor(event: MouseEvent): void {
|
||||
const coords = this._getMouseBufferCoords(event);
|
||||
if (coords) {
|
||||
const wordPosition = this._getWordAt(coords, true);
|
||||
const wordPosition = this._getWordAt(coords, false);
|
||||
if (wordPosition) {
|
||||
this._model.selectionStart = [wordPosition.start, coords[1]];
|
||||
this._model.selectionStartLength = wordPosition.length;
|
||||
|
||||
Reference in New Issue
Block a user