kovidgoyal / kitty

Cross-platform, fast, feature-rich, GPU based terminal
https://sw.kovidgoyal.net/kitty/
GNU General Public License v3.0
22.14k stars 907 forks source link

Kitty does not fit the maximum width #7369

Closed matiux closed 3 weeks ago

matiux commented 3 weeks ago

Describe the bug After a certain width the kitty contents do not fit the window

To Reproduce take a long line and enlarge the window into a 4k screen

Screenshots Screenshot_20240420_003522

Environment details

kitty 0.33.1 created by Kovid Goyal
Linux iuxhome 6.8.7-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 17 Apr 2024 15:20:28 +0000 x86_64
Arch Linux 6.8.7-arch1-1 (/dev/tty)

Running under: Wayland
Frozen: False
Paths:
  kitty: /usr/bin/kitty
  base dir: /usr/lib/kitty
  extensions dir: /usr/lib/kitty/kitty
  system shell: /usr/bin/zsh
Loaded config files:
  /home/iux/.config/kitty/kitty.conf

Config options different from defaults:
font_size 12.0

Important environment variables seen by the kitty process:
    PATH                                /usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
    LANG                                en_US.UTF-8
    SHELL                               /usr/bin/zsh
    DISPLAY                             :1
    WAYLAND_DISPLAY                     wayland-0
    USER                                iux
    XDG_CONFIG_DIRS                     /home/iux/.config/kdedefaults:/etc/xdg
    XDG_CURRENT_DESKTOP                 KDE
    XDG_DATA_DIRS                       /home/iux/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
    XDG_MENU_PREFIX                     plasma-
    XDG_RUNTIME_DIR                     /run/user/1000
    XDG_SEAT                            seat0
    XDG_SEAT_PATH                       /org/freedesktop/DisplayManager/Seat0
    XDG_SESSION_CLASS                   user
    XDG_SESSION_DESKTOP                 KDE
    XDG_SESSION_ID                      2
    XDG_SESSION_PATH                    /org/freedesktop/DisplayManager/Session1
    XDG_SESSION_TYPE                    wayland
    XDG_VTNR                            1
kovidgoyal commented 3 weeks ago

Does not reproduce for me. Any line that does not have hard line breaks is reflowed on resize. From your screenshot you are talking about a prompt. Depending on your shell prompts are not actually drawn as continuous lines with wrapping, so they cannot be unwrapped arnitrarily.

matiux commented 3 weeks ago

My question was about the space to the right of the prompt, not about wrapping. it's as if there was padding on the right margin

kovidgoyal commented 3 weeks ago

the prompt is drawn by the shell, not kitty.