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:
@@ -267,7 +267,7 @@ func write_unicode_placeholder(imgd *image_data) {
|
||||
id_char := string(images.NumberToDiacritic[(imgd.image_id>>24)&255])
|
||||
for r := 0; r < imgd.height_cells; r++ {
|
||||
if imgd.move_to.x > 0 {
|
||||
fmt.Printf("\x1b[%dC", imgd.move_to.x)
|
||||
fmt.Printf("\x1b[%dC", imgd.move_to.x-1)
|
||||
} else {
|
||||
os.Stdout.WriteString(prefix)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user