fix(addon-image): skip missing buffer lines in render
Co-authored-by: Daniel Imms <Tyriar@users.noreply.github.com>
This commit is contained in:
co-authored by
Daniel Imms
parent
b5e0cdb20c
commit
a0919b9004
@@ -432,7 +432,7 @@ export class ImageStorage implements IDisposable {
|
|||||||
// This lets top-layer images survive text overwrites (kitty C=1 behavior).
|
// This lets top-layer images survive text overwrites (kitty C=1 behavior).
|
||||||
for (let row = start; row <= end; ++row) {
|
for (let row = start; row <= end; ++row) {
|
||||||
const line = buffer.lines.get(row + buffer.ydisp) as IBufferLineExt;
|
const line = buffer.lines.get(row + buffer.ydisp) as IBufferLineExt;
|
||||||
if (!line) return;
|
if (!line) continue;
|
||||||
for (let col = 0; col < cols; ++col) {
|
for (let col = 0; col < cols; ++col) {
|
||||||
let e: IExtendedAttrsImage;
|
let e: IExtendedAttrsImage;
|
||||||
if (line.getBg(col) & BgFlags.HAS_EXTENDED) {
|
if (line.getBg(col) & BgFlags.HAS_EXTENDED) {
|
||||||
|
|||||||
Reference in New Issue
Block a user