fix surrogate crash.
This commit is contained in:
parent
29ca94e719
commit
c5e5ed86f6
|
@ -3997,7 +3997,7 @@ Element.prototype.render = function() {
|
|||
|
||||
// Handle surrogate pairs:
|
||||
// Make sure we put surrogate pair chars in one cell.
|
||||
if (this.screen.fullUnicode) {
|
||||
if (this.screen.fullUnicode && content[ci - 1]) {
|
||||
var code = content[ci - 1].charCodeAt(0);
|
||||
// if (content.codePointAt(ci - 1) > 0xffff) {
|
||||
if (code >= 0xd800 && code <= 0xdbff) {
|
||||
|
|
Loading…
Reference in New Issue