mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
use correct powerline glyph range (#3756)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user