mirror of
https://github.com/embarklabs/neo-blessed.git
synced 2025-02-02 22:24:55 +00:00
break on border loops when possible.
This commit is contained in:
parent
9105c80eb7
commit
1c048e6061
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user