commit e5edac44a431d94f1dbddc0a5234a626eaa7af5e
parent 3c82e618d8b9137c7aefa8b660c799557076ebbf
Author: Andy Herbert <andy.herbert@gmail.com>
Date: Wed, 13 Nov 2013 16:34:23 +0000
Be more strict with the sanity check on column widths.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ansilove.js b/ansilove.js
@@ -992,7 +992,7 @@ var AnsiLove = (function () {
// If there is a sauce record...
if (file.sauce) {
// Do a weak sanity check to see if there is a valid column setting, and use it if it passes.
- if (file.sauce.tInfo1 > 0) {
+ if (file.sauce.tInfo1 > 0 && file.sauce.tInfo1 <= 1000) {
columns = file.sauce.tInfo1;
} else {
columns = 80;