mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
kitten icat: Fix image being displayed one cell to the right when using both --place and --unicode-placeholder
Fixes #6556
This commit is contained in:
@@ -49,6 +49,8 @@ Detailed list of changes
|
|||||||
|
|
||||||
- kitten @ ls: Allow limiting output to matched windows/tabs (:iss:`6520`)
|
- kitten @ ls: Allow limiting output to matched windows/tabs (:iss:`6520`)
|
||||||
|
|
||||||
|
- kitten icat: Fix image being displayed one cell to the right when using both ``--place`` and ``--unicode-placeholder`` (:iss:`6556`)
|
||||||
|
|
||||||
- Remote control: Allow using a random TCP port as the remote control socket and also allow using TCP sockets in :opt:`listen_on`
|
- Remote control: Allow using a random TCP port as the remote control socket and also allow using TCP sockets in :opt:`listen_on`
|
||||||
|
|
||||||
- unicode_input kitten: Add an option to specify the startup tab (:iss:`6552`)
|
- unicode_input kitten: Add an option to specify the startup tab (:iss:`6552`)
|
||||||
|
|||||||
@@ -267,7 +267,7 @@ func write_unicode_placeholder(imgd *image_data) {
|
|||||||
id_char := string(images.NumberToDiacritic[(imgd.image_id>>24)&255])
|
id_char := string(images.NumberToDiacritic[(imgd.image_id>>24)&255])
|
||||||
for r := 0; r < imgd.height_cells; r++ {
|
for r := 0; r < imgd.height_cells; r++ {
|
||||||
if imgd.move_to.x > 0 {
|
if imgd.move_to.x > 0 {
|
||||||
fmt.Printf("\x1b[%dC", imgd.move_to.x)
|
fmt.Printf("\x1b[%dC", imgd.move_to.x-1)
|
||||||
} else {
|
} else {
|
||||||
os.Stdout.WriteString(prefix)
|
os.Stdout.WriteString(prefix)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user