Small details

This commit is contained in:
Anthony Kim
2026-01-27 22:20:21 -08:00
parent 8c9afdb364
commit 3e8fc48b33
2 changed files with 2 additions and 1 deletions
@@ -230,6 +230,7 @@ export class KittyApcHandler {
const payload = cmd.payload ?? '';
const pendingKey = cmd.id ?? 0;
// larger image would require chunking.
const isMoreComing = cmd.more === 1;
const pending = this._pendingTransmissions.get(pendingKey);
@@ -47,7 +47,7 @@ export class KittyGraphicsAddon implements ITerminalAddon, IKittyGraphicsApi {
// Register APC handler for 'G' (0x47) - Kitty graphics protocol
// APC sequence format: ESC _ G <data> ESC \
this._apcHandler = terminal.parser.registerApcHandler(0x47, (data: string) => {
return this._kittyApcHandler!.handle(data);
return this._kittyApcHandler?.handle(data) ?? true;
});
}