Skip to content

Kitty links match onto next line if unmatched characters are on a new line by themselves #6710

Closed
@jgkamat

Description

@jgkamat

Describe the bug
Kitty seems to include characters it normally wouldn't in links if the window is sized in a way that the offending characters spill to the next lines

To Reproduce
Steps to reproduce the behavior:

  1. Launch kitty -c /dev/null
  2. Run echo "[https://github.com/kovidgoyal/kitty/releases]"
  3. Resize window so ] is on it's own line, by itself
  4. Click link, observe link has ] on the end.

Screenshots
] is removed, as expected.
Screenshot 2023-10-12 at 2 05 29 PM
] is included, unexpected
Screenshot 2023-10-12 at 2 05 41 PM
] is removed, as expected
Screenshot 2023-10-12 at 2 08 16 PM

Environment details

kitty 0.30.1 (6a3529b7c2) created by Kovid Goyal
Darwin GQFWMD6VL7 22.6.0 Darwin Kernel Version 22.6.0: Wed Jul  5 22:21:53 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T6020 arm64
ProductName:		macOS ProductVersion:		13.5.2 BuildVersion:		22G91
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: /opt/homebrew/bin/zsh
Loaded config files:
  /dev/null

Config options different from defaults:

Important environment variables seen by the kitty process:
	PATH                                [I censored this bit, let me know if you would like it]
	LANG                                en_US.UTF-8
	EDITOR                              vim
	SHELL                               /bin/zsh
	USER                                jay.kamat

Additional context
Seems to reproduce with a default config

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions