提交 30f6aaab 编写于 作者: I Ian Sanders

Check colorIndex explicitly against undefined (can be 0)

上级 a03d4dde
...@@ -236,7 +236,7 @@ export function handleANSIOutput(text: string, linkDetector: LinkDetector, theme ...@@ -236,7 +236,7 @@ export function handleANSIOutput(text: string, linkDetector: LinkDetector, theme
colorType = 'background'; colorType = 'background';
} }
if (colorIndex && colorType) { if (colorIndex !== undefined && colorType) {
const colorName = ansiColorIdentifiers[colorIndex]; const colorName = ansiColorIdentifiers[colorIndex];
const color = theme.getColor(colorName); const color = theme.getColor(colorName);
if (color) { if (color) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册