use correct powerline glyph range (#3756)

This commit is contained in:
Megan Rogge
2022-05-02 20:50:11 +00:00
committed by GitHub
parent 261209cab6
commit 1687d06f1c
+4 -3
View File
@@ -11,7 +11,8 @@ export function throwIfFalsy<T>(value: T | undefined | null): T {
}
export function isPowerlineGlyph(codepoint: number): boolean {
// This range was established via
// https://apw-bash-settings.readthedocs.io/en/latest/fontpatching.html
return 0xE000 <= codepoint && codepoint <= 0xF8FF;
// Only return true for Powerline symbols which require
// different padding and should be excluded from minimum contrast
// ratio standards
return 0xE0A0 <= codepoint && codepoint <= 0xE0D6;
}