Skip to content
Open
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
298 changes: 238 additions & 60 deletions config/patches/@xterm__addon-image@0.10.0-beta.301.patch

Large diffs are not rendered by default.

278 changes: 228 additions & 50 deletions config/patches/xterm-src/@xterm__addon-image@0.10.0-beta.301.src.patch

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ describe('Kitty virtual placement ownership and rendering', () => {
}
})

it('invalidates virtual placement bookkeeping when the pixel budget evicts it', async () => {
it('retains virtual placement metadata when the pixel budget evicts its bitmap', async () => {
const h = createPlaceholderTerminal()
try {
await writeKitty(h.terminal, 'a=T,f=100,i=7,U=1,c=2,r=2', PNG)
Expand All @@ -109,7 +109,7 @@ describe('Kitty virtual placement ownership and rendering', () => {
await writeKitty(h.terminal, 'a=T,f=100,i=8,U=1,c=2,r=2', PNG)
expect(render(h)).toHaveLength(0)
expect(h.bitmaps[0].close).toHaveBeenCalledOnce()
expect(h.kitty._virtualPlacements.has(7)).toBe(false)
expect(h.kitty._virtualPlacements.has(7)).toBe(true)
} finally {
h.terminal.dispose()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
afterEach(() => vi.unstubAllGlobals())

describe('Kitty virtual placement lifecycle', () => {
it('keeps alternate-buffer prototypes across ordinary image placement and releases them on exit', async () => {
it('keeps alternate-buffer prototypes across ordinary image placement and releases their pixels on exit', async () => {
const h = createPlaceholderTerminal()
try {
await write(h.terminal, '\x1b[?1049h')
Expand All @@ -23,7 +23,7 @@ describe('Kitty virtual placement lifecycle', () => {
expect(render(h).filter((call) => call[0] === virtual)).toHaveLength(2)
await write(h.terminal, '\x1b[?1049l')
expect(h.storage._images.size).toBe(0)
expect(h.kitty._virtualPlacements.size).toBe(0)
expect(h.kitty._virtualPlacements.size).toBe(1)
expect(virtual.close).toHaveBeenCalledOnce()
} finally {
h.terminal.dispose()
Expand Down
Loading