mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-13 20:14:12 +02:00
Don't need to save/restore private mode values in icat when output unicode paceholder
Was originally there in case we turned off line wrapping. But didnt end up doing that.
This commit is contained in:
@@ -252,10 +252,10 @@ func next_random() (ans uint32) {
|
||||
func write_unicode_placeholder(imgd *image_data) {
|
||||
prefix := ""
|
||||
foreground := fmt.Sprintf("\033[38:2:%d:%d:%dm", (imgd.image_id>>16)&255, (imgd.image_id>>8)&255, imgd.image_id&255)
|
||||
os.Stdout.WriteString(loop.SAVE_PRIVATE_MODE_VALUES + foreground)
|
||||
restore := "\033[39m" + loop.RESTORE_PRIVATE_MODE_VALUES
|
||||
os.Stdout.WriteString(foreground)
|
||||
restore := "\033[39m"
|
||||
if imgd.move_to.y > 0 {
|
||||
fmt.Print(loop.SAVE_CURSOR)
|
||||
os.Stdout.WriteString(loop.SAVE_CURSOR)
|
||||
restore += loop.RESTORE_CURSOR
|
||||
} else if imgd.move_x_by > 0 {
|
||||
prefix = strings.Repeat(" ", imgd.move_x_by)
|
||||
|
||||
Reference in New Issue
Block a user