Merge branch 'master' into extract_vt_features

This commit is contained in:
jerch
2019-09-12 10:55:55 +02:00
committed by GitHub
19 changed files with 111 additions and 20 deletions
+1 -1
View File
@@ -211,7 +211,7 @@ export class Linkifier implements ILinkifier {
*/
private _doLinkifyRow(rowIndex: number, text: string, matcher: ILinkMatcher): void {
// clone regex to do a global search on text
const rex = new RegExp(matcher.regex.source, matcher.regex.flags + 'g');
const rex = new RegExp(matcher.regex.source, (matcher.regex.flags || '') + 'g');
let match;
let stringIndex = -1;
while ((match = rex.exec(text)) !== null) {
+1 -1
View File
@@ -664,7 +664,7 @@ export class SelectionService implements ISelectionService {
this._removeMouseDownListeners();
if (this.selectionText.length <= 1 && timeElapsed < ALT_CLICK_MOVE_CURSOR_TIME) {
if (event.altKey) {
if (event.altKey && this._bufferService.buffer.ybase === this._bufferService.buffer.ydisp) {
const coordinates = this._mouseService.getCoords(
event,
this._element,