fix: kitty graphics check
This commit is contained in:
parent
6d729a2dc3
commit
b20cd90246
1 changed files with 4 additions and 0 deletions
|
@ -735,6 +735,8 @@ pub fn transmitLocalImagePath(
|
|||
medium: Image.TransmitMedium,
|
||||
format: Image.TransmitFormat,
|
||||
) !Image {
|
||||
if (!self.caps.kitty_graphics) return error.NoGraphicsCapability;
|
||||
|
||||
defer self.next_img_id += 1;
|
||||
|
||||
const id = self.next_img_id;
|
||||
|
@ -788,6 +790,8 @@ pub fn transmitPreEncodedImage(
|
|||
height: u16,
|
||||
format: Image.TransmitFormat,
|
||||
) !Image {
|
||||
if (!self.caps.kitty_graphics) return error.NoGraphicsCapability;
|
||||
|
||||
defer self.next_img_id += 1;
|
||||
const id = self.next_img_id;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue