Merge pull request #981 from Tyriar/974_fix_wide_arrow
Treat \u279C arrow as ambiguous width char (like emoji)
This commit is contained in:
@@ -159,6 +159,12 @@ export class ForegroundRenderLayer extends BaseRenderLayer {
|
||||
* @param char The character to search.
|
||||
*/
|
||||
private _isEmoji(char: string): boolean {
|
||||
// TODO: We need a generic solution for handling characters like this
|
||||
// Check special ambiguous width characters
|
||||
if (char === '➜') {
|
||||
return true;
|
||||
}
|
||||
// Check emoji unicode range
|
||||
return char.search(/([\uD800-\uDBFF][\uDC00-\uDFFF])/g) >= 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user