change Linkifier._doLinkifyRow

This commit is contained in:
Jörg Breitbart
2018-09-10 00:40:29 +02:00
parent 4aa8e402a4
commit daa6fa0a66
2 changed files with 38 additions and 75 deletions
+4 -4
View File
@@ -6,7 +6,7 @@
import { IColorSet, IRenderer, IRenderDimensions, IColorManager } from '../renderer/Types';
import { IInputHandlingTerminal, IViewport, ICompositionHelper, ITerminal, IBuffer, IBufferSet, IBrowser, ICharMeasure, ISelectionManager, ITerminalOptions, ILinkifier, IMouseHelper, ILinkMatcherOptions, CharacterJoinerHandler, IBufferLine, IBufferStringIterator } from '../Types';
import { ICircularList, XtermListener } from '../common/Types';
import { Buffer } from '../Buffer';
import { Buffer, BufferStringIterator } from '../Buffer';
import * as Browser from '../shared/utils/Browser';
import { ITheme, IDisposable, IMarker } from 'xterm';
@@ -300,7 +300,7 @@ export class MockBuffer implements IBuffer {
return Buffer.prototype.translateBufferLineToString.apply(this, arguments);
}
getWrappedRangeForLine(y: number): { first: number; last: number; } {
throw new Error('Method not implemented.');
return Buffer.prototype.getWrappedRangeForLine.apply(this, arguments);
}
nextStop(x?: number): number {
throw new Error('Method not implemented.');
@@ -312,10 +312,10 @@ export class MockBuffer implements IBuffer {
this.lines = lines;
}
stringIndexToBufferIndex(lineIndex: number, stringIndex: number): number[] {
throw new Error('Method not implemented.');
return Buffer.prototype.stringIndexToBufferIndex.apply(this, arguments);
}
contents(trimRight: boolean, startIndex?: number, endIndex?: number): IBufferStringIterator {
throw new Error('Method not implemented.');
return Buffer.prototype.contents.apply(this, arguments);
}
}