Fix exception for links on bottom line

This commit is contained in:
Daniel Imms
2018-03-08 11:12:59 -08:00
parent ab9b84898e
commit 59be054ca1
+4 -5
View File
@@ -169,11 +169,10 @@ export class Linkifier extends EventEmitter implements ILinkifier {
let text = this._terminal.buffer.translateBufferLineToString(absoluteRowIndex, false);
// Construct full unwrapped line text
if (absoluteRowIndex + 1 < this._terminal.buffer.lines.length) {
let currentIndex = absoluteRowIndex + 1;
while ((<any>this._terminal.buffer.lines.get(currentIndex)).isWrapped) {
text += this._terminal.buffer.translateBufferLineToString(currentIndex++, false);
}
let currentIndex = absoluteRowIndex + 1;
while (currentIndex < this._terminal.buffer.lines.length &&
(<any>this._terminal.buffer.lines.get(currentIndex)).isWrapped) {
text += this._terminal.buffer.translateBufferLineToString(currentIndex++, false);
}
for (let i = 0; i < this._linkMatchers.length; i++) {