From 1c048e60615ee02f2b82fb60c20dad232bf64053 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sat, 4 Apr 2015 07:12:01 -0700 Subject: [PATCH] break on border loops when possible. --- lib/widget.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/widget.js b/lib/widget.js index a73dd2e..4ce79b6 100644 --- a/lib/widget.js +++ b/lib/widget.js @@ -3906,7 +3906,7 @@ Element.prototype.render = function() { y = yi; if (coords.notop) y = -1; for (x = xi; x < xl; x++) { - if (!lines[y]) continue; + if (!lines[y]) break; if (coords.noleft && x === xi) continue; if (coords.noright && x === xl - 1) continue; cell = lines[y][x]; @@ -4038,7 +4038,7 @@ Element.prototype.render = function() { y = yl - 1; if (coords.nobot) y = -1; for (x = xi; x < xl; x++) { - if (!lines[y]) continue; + if (!lines[y]) break; if (coords.noleft && x === xi) continue; if (coords.noright && x === xl - 1) continue; cell = lines[y][x];