Skip to content

Commit

Permalink
use correct powerline glyph range (#3756)
Browse files Browse the repository at this point in the history
  • Loading branch information
meganrogge committed May 2, 2022
1 parent 261209c commit 1687d06
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/browser/renderer/RendererUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 1687d06

Please sign in to comment.