Fix bad SyncTerm/cterm font ESC generation when no font match

This commit is contained in:
Bryan Ashby 2015-11-25 17:58:35 -07:00
parent 1fb12e3262
commit 6a70c5af51
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@ function setSyncTERMFont(name, fontPage) {
assert(p1 >= 0 && p1 <= 3);
var p2 = SYNCTERM_FONT_AND_ENCODING_TABLE.indexOf(name);
if(_.isNumber(p2)) {
if(p2 > -1) {
return ESC_CSI + p1 + ';' + p2 + ' D';
}