mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-25 17:52:02 +02:00
Fix replay of multicell_command
This commit is contained in:
@@ -292,6 +292,8 @@ def multicell_command(payload: str) -> None:
|
|||||||
m += f'd={d}:'
|
m += f'd={d}:'
|
||||||
if (v := c.pop('vertical_align', None)) is not None and v > 0:
|
if (v := c.pop('vertical_align', None)) is not None and v > 0:
|
||||||
m += f'v={v}:'
|
m += f'v={v}:'
|
||||||
|
if (h := c.pop('horizontal_align', None)) is not None and h > 0:
|
||||||
|
m += f'h={h}:'
|
||||||
if c:
|
if c:
|
||||||
raise Exception('Unknown keys in multicell_command: ' + ', '.join(c))
|
raise Exception('Unknown keys in multicell_command: ' + ', '.join(c))
|
||||||
write(f'{OSC}{TEXT_SIZE_CODE};{m.rstrip(":")};{text}\a')
|
write(f'{OSC}{TEXT_SIZE_CODE};{m.rstrip(":")};{text}\a')
|
||||||
|
|||||||
Reference in New Issue
Block a user