mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Don't allow double click selection on empty row going out of viewport
This commit is contained in:
@@ -459,7 +459,7 @@ export class SelectionManager extends EventEmitter {
|
||||
|
||||
// Record the resulting selection
|
||||
this._model.selectionStart = [startIndex + charOffset - leftWideCharCount, coords[1]];
|
||||
this._model.selectionStartLength = endIndex - startIndex + leftWideCharCount + rightWideCharCount + 1/*include endIndex char*/;
|
||||
this._model.selectionStartLength = Math.min(endIndex - startIndex + leftWideCharCount + rightWideCharCount + 1/*include endIndex char*/, this._terminal.cols);
|
||||
}
|
||||
|
||||
private _selectLineAt(line: number): void {
|
||||
|
||||
Reference in New Issue
Block a user