mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 02:31:45 +02:00
icat kitten: Fix transmission of frame data in direct mode
Sometimes frame data is > 2048 but does not compress smaller, which broke the if statement checking for first loop. Fixes #5958
This commit is contained in:
@@ -43,6 +43,9 @@ Detailed list of changes
|
|||||||
- Fix a regression causing the ``edit-in-kitty`` command not working if :file:`kitten` is not added
|
- Fix a regression causing the ``edit-in-kitty`` command not working if :file:`kitten` is not added
|
||||||
to PATH (:iss:`5956`)
|
to PATH (:iss:`5956`)
|
||||||
|
|
||||||
|
- icat kitten: Fix a regression that broke display of animated GIFs over SSH
|
||||||
|
(:iss:`5958`)
|
||||||
|
|
||||||
0.27.0 [2023-01-31]
|
0.27.0 [2023-01-31]
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
|||||||
@@ -551,6 +551,7 @@ func (self *GraphicsCommand) WriteWithPayloadTo(o io.StringWriter, payload []byt
|
|||||||
payload = compressed
|
payload = compressed
|
||||||
}
|
}
|
||||||
data := base64.StdEncoding.EncodeToString(payload)
|
data := base64.StdEncoding.EncodeToString(payload)
|
||||||
|
is_first := true
|
||||||
for len(data) > 0 && err == nil {
|
for len(data) > 0 && err == nil {
|
||||||
chunk := data
|
chunk := data
|
||||||
if len(data) > 4096 {
|
if len(data) > 4096 {
|
||||||
@@ -565,9 +566,10 @@ func (self *GraphicsCommand) WriteWithPayloadTo(o io.StringWriter, payload []byt
|
|||||||
gc.m = GRT_more_nomore
|
gc.m = GRT_more_nomore
|
||||||
}
|
}
|
||||||
err = gc.serialize_to(o, chunk)
|
err = gc.serialize_to(o, chunk)
|
||||||
if gc.DataSize() > 0 {
|
if !is_first {
|
||||||
gc = GraphicsCommand{}
|
gc = GraphicsCommand{}
|
||||||
}
|
}
|
||||||
|
is_first = false
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user