Skip to content

--unicode-placeholder method of icat does not respect --place arguments #6556

Closed
@BigBrotherJu

Description

@BigBrotherJu

Describe the bug
--unicode-placeholder method of icat does not respect --place arguments

To Reproduce
Steps to reproduce the behavior:

  1. kitty +kitten icat --place "32x24@48x1" 123.png
  2. kitty +kitten icat --place "32x24@48x1" --unicode-placeholder 123.png
  3. Image output of step 2 is different from that of step 1

Screenshots
Image output of step 1:

image

Image output of step 2:

image

Seems like when --unicode-placeholder is specified, the image moves to the right by 1 cell.

Environment details

kitty 0.29.2 (95316fc2dc) created by Kovid Goyal
Darwin macbook 20.6.0 Darwin Kernel Version 20.6.0: Wed Nov 10 22:23:07 PST 2021; root:xnu-7195.141.14~1/RELEASE_X86_64 x86_64
ProductName:	macOS ProductVersion:	11.6.2 BuildVersion:	20G314
Frozen: True
Paths:
  kitty: /Applications/kitty.app/Contents/MacOS/kitty
  base dir: /Applications/kitty.app/Contents/Resources/kitty
  extensions dir: /Applications/kitty.app/Contents/Resources/Python/lib/kitty-extensions
  system shell: /usr/local/bin/bash
Loaded config files:
  /Users/juhan/.config/kitty/kitty.conf

Config options different from defaults:
confirm_os_window_close   0
cursor                    None
cursor_blink_interval     0.0
font_family               menlo
font_size                 14.0
initial_window_height     (25, 'cells')
initial_window_width      (78, 'cells')
macos_titlebar_color      1
remember_window_size      False
resize_in_steps           True
selection_foreground      None
shell_integration         frozenset({'disabled'})
text_composition_strategy 2.5 30
window_margin_width       FloatEdges(left=10.0, top=10.0, right=10.0, bottom=10.0)
Colors:
	background                #ffffff   
	color0                    #24292e   
	color1                    #ff8182   
	color10                   #6fdd8b   
	color11                   #eac54f   
	color12                   #80ccff   
	color13                   #d8b9ff   
	color14                   #b3f0ff   
	color15                   #d1d5da   
	color2                    #4ac26b   
	color3                    #d4a72c   
	color4                    #54aeff   
	color5                    #c297ff   
	color6                    #76e3ea   
	color7                    #6a737d   
	color8                    #959da5   
	color9                    #ffaba8   
	foreground                #24292f   
	selection_background      #ddf4ff   
	url_color                 #24292f   

Important environment variables seen by the kitty process:
	PATH                                /Applications/kitty.app/Contents/MacOS:/usr/bin:/bin:/usr/sbin:/sbin
	LANG                                zh_CN.UTF-8
	SHELL                               /usr/local/bin/bash
	USER                                juhan

Additional context
The problem can be reproduced with kitty --config NONE.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions