Merge pull request #2973 from daniel-j-davis/fix_2617

Fix getSelection not working sometimes for single character selections
This commit is contained in:
Daniel Imms
2020-06-11 06:29:20 -07:00
committed by GitHub
+2 -2
View File
@@ -667,8 +667,8 @@ export class SelectionService extends Disposable implements ISelectionService {
this._removeMouseDownListeners();
if (this.selectionText.length <= 1 && timeElapsed < ALT_CLICK_MOVE_CURSOR_TIME) {
if (event.altKey && this._bufferService.buffer.ybase === this._bufferService.buffer.ydisp) {
if (this.selectionText.length <= 1 && timeElapsed < ALT_CLICK_MOVE_CURSOR_TIME && event.altKey) {
if (this._bufferService.buffer.ybase === this._bufferService.buffer.ydisp) {
const coordinates = this._mouseService.getCoords(
event,
this._element,