@@ -381,7 +381,7 @@ export class ImageStorage implements IDisposable {
381381 if ( ! line ) return ;
382382 for ( let col = 0 ; col < cols ; ++ col ) {
383383 if ( line . getBg ( col ) & BgFlags . HAS_EXTENDED ) {
384- let e : IExtendedAttrsImage = line . _extendedAttrs [ col ] || EMPTY_ATTRS ;
384+ let e : IExtendedAttrsImage = line . _extendedAttrs [ col ] ?? EMPTY_ATTRS ;
385385 const imageId = e . imageId ;
386386 if ( imageId === undefined || imageId === - 1 ) {
387387 continue ;
@@ -400,7 +400,7 @@ export class ImageStorage implements IDisposable {
400400 while (
401401 ++ col < cols
402402 && ( line . getBg ( col ) & BgFlags . HAS_EXTENDED )
403- && ( e = line . _extendedAttrs [ col ] || EMPTY_ATTRS )
403+ && ( e = line . _extendedAttrs [ col ] ?? EMPTY_ATTRS )
404404 && ( e . imageId === imageId )
405405 && ( e . tileId === startTile + count )
406406 ) {
@@ -442,7 +442,7 @@ export class ImageStorage implements IDisposable {
442442 for ( let row = 0 ; row < rows ; ++ row ) {
443443 const line = buffer . lines . get ( row ) as IBufferLineExt ;
444444 if ( line . getBg ( oldCol ) & BgFlags . HAS_EXTENDED ) {
445- const e : IExtendedAttrsImage = line . _extendedAttrs [ oldCol ] || EMPTY_ATTRS ;
445+ const e : IExtendedAttrsImage = line . _extendedAttrs [ oldCol ] ?? EMPTY_ATTRS ;
446446 const imageId = e . imageId ;
447447 if ( imageId === undefined || imageId === - 1 ) {
448448 continue ;
@@ -487,7 +487,7 @@ export class ImageStorage implements IDisposable {
487487 const buffer = this . _terminal . _core . buffer ;
488488 const line = buffer . lines . get ( y ) as IBufferLineExt ;
489489 if ( line && line . getBg ( x ) & BgFlags . HAS_EXTENDED ) {
490- const e : IExtendedAttrsImage = line . _extendedAttrs [ x ] || EMPTY_ATTRS ;
490+ const e : IExtendedAttrsImage = line . _extendedAttrs [ x ] ?? EMPTY_ATTRS ;
491491 if ( e . imageId && e . imageId !== - 1 ) {
492492 const orig = this . _images . get ( e . imageId ) ?. orig ;
493493 if ( window . ImageBitmap && orig instanceof ImageBitmap ) {
@@ -507,7 +507,7 @@ export class ImageStorage implements IDisposable {
507507 const buffer = this . _terminal . _core . buffer ;
508508 const line = buffer . lines . get ( y ) as IBufferLineExt ;
509509 if ( line && line . getBg ( x ) & BgFlags . HAS_EXTENDED ) {
510- const e : IExtendedAttrsImage = line . _extendedAttrs [ x ] || EMPTY_ATTRS ;
510+ const e : IExtendedAttrsImage = line . _extendedAttrs [ x ] ?? EMPTY_ATTRS ;
511511 if ( e . imageId && e . imageId !== - 1 && e . tileId !== - 1 ) {
512512 const spec = this . _images . get ( e . imageId ) ;
513513 if ( spec ) {
0 commit comments