Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use correct powerline glyph range #3756

Merged
merged 2 commits into from
May 2, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
meganrogge marked this conversation as resolved.
Show resolved Hide resolved
}