Trygve Aaberge 03720402a7 Fix hints sometimes matching next line as part of URL
For URLs where there's fewer characters left to the right edge of the
window than the number of escape characters in the line, the next line
would be included in the URL, as if the URL went all the way to the
right edge.

For example with a 40 chars wide terminal, if you run:

    echo -e '\e[31m1\e[m https://github.com/kovidgoyal/kitty\ntest'

And launch the hints kitten, you'll see that test on the next line will
be included in the URL.

This happened because the calculation for filling the rest of the line
with NUL characters counted the escape characters as well as the visible
characters, so it filled in too few characters.

This is a regression introduced in commit 91966712.
2022-08-30 22:24:58 +02:00
2022-08-20 13:05:12 +05:30
2022-08-20 16:08:28 +00:00
2022-01-28 19:34:13 +08:00
2022-08-19 11:20:50 +05:30
2022-08-10 12:02:43 +05:30
2022-08-20 13:38:33 +05:30
2022-08-30 10:27:53 +05:30
2022-02-11 23:05:12 +08:00
2022-03-12 08:23:10 +05:30
2022-08-20 13:38:33 +05:30

= kitty - the fast, feature-rich, cross-platform, GPU based terminal

See https://sw.kovidgoyal.net/kitty/[the kitty website].

image:https://github.com/kovidgoyal/kitty/workflows/CI/badge.svg["Build status", link="https://github.com/kovidgoyal/kitty/actions?query=workflow%3ACI"]

https://sw.kovidgoyal.net/kitty/faq/[Frequently Asked Questions]

To ask other questions about kitty usage, use either the https://github.com/kovidgoyal/kitty/discussions/[discussions on GitHub] or the
https://www.reddit.com/r/KittyTerminal[Reddit community]

Packaging status in various repositories:

image:https://repology.org/badge/vertical-allrepos/kitty.svg["Packaging status", link="https://repology.org/project/kitty/versions"]
Description
No description provided
Readme GPL-3.0 155 MiB
Languages
C 44.9%
Python 25.9%
Go 23.2%
Objective-C 3.6%
C++ 1.3%
Other 1.1%