Merge pull request #926 from mitchellh/kitty-bug

renderer: handle Kitty images where z < 0 for all placements
pull/927/head
Mitchell Hashimoto 2023-11-20 21:38:52 -08:00 committed by GitHub
commit 9d7864ff6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -1214,6 +1214,9 @@ fn prepKittyGraphics(
self.image_text_end = @intCast(i);
}
}
if (self.image_text_end == 0) {
self.image_text_end = @intCast(self.image_placements.items.len);
}
}
/// Update the configuration.

View File

@ -839,6 +839,9 @@ fn prepKittyGraphics(
self.image_text_end = @intCast(i);
}
}
if (self.image_text_end == 0) {
self.image_text_end = @intCast(self.image_placements.items.len);
}
}
/// rebuildCells rebuilds all the GPU cells from our CPU state. This is a