We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7ef18cc + f4bb4a2 commit f9717bcCopy full SHA for f9717bc
src/Linkifier.ts
@@ -220,8 +220,11 @@ export class Linkifier extends EventEmitter implements ILinkifier {
220
// Get cell color
221
const line = this._terminal.buffer.lines.get(this._terminal.buffer.ydisp + rowIndex);
222
const char = line.get(index);
223
- const attr: number = char[CHAR_DATA_ATTR_INDEX];
224
- const fg = (attr >> 9) & 0x1ff;
+ let fg: number | undefined;
+ if (char) {
225
+ const attr: number = char[CHAR_DATA_ATTR_INDEX];
226
+ fg = (attr >> 9) & 0x1ff;
227
+ }
228
229
// Ensure the link is valid before registering
230
if (matcher.validationCallback) {
0 commit comments