mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-25 17:52:02 +02:00
Cleanup previous PR
This commit is contained in:
@@ -206,6 +206,8 @@ Detailed list of changes
|
|||||||
|
|
||||||
- Fix superfluous margin visible to the left and right of the tab bar when :opt:`background_opacity` is less than one and the window width is not a multiple of the cell width (:iss:`10212`)
|
- Fix superfluous margin visible to the left and right of the tab bar when :opt:`background_opacity` is less than one and the window width is not a multiple of the cell width (:iss:`10212`)
|
||||||
|
|
||||||
|
- hints kitten: Add a new flag :option:`kitty +kitten hints --prefix-free` to generate hints without a shared prefix (:pull:`10210`)
|
||||||
|
|
||||||
|
|
||||||
0.47.4 [2026-06-15]
|
0.47.4 [2026-06-15]
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|||||||
@@ -38,12 +38,12 @@ func TestPrefixFreeHints(t *testing.T) {
|
|||||||
total_hints := int(math.Pow(float64(2), float64(n)))
|
total_hints := int(math.Pow(float64(2), float64(n)))
|
||||||
skip := hints_to_skip(total_hints, l)
|
skip := hints_to_skip(total_hints, l)
|
||||||
hints := make([]string, total_hints)
|
hints := make([]string, total_hints)
|
||||||
for i := 0; i < total_hints; i++ {
|
for i := range total_hints {
|
||||||
hints[i] = generate_prefix_free_hint(skip+1+i, alph)
|
hints[i] = generate_prefix_free_hint(skip+1+i, alph)
|
||||||
}
|
}
|
||||||
// Verify that no hint is a prefix of another hint
|
// Verify that no hint is a prefix of another hint
|
||||||
for i := 0; i < total_hints; i++ {
|
for i := range total_hints {
|
||||||
for j := 0; j < total_hints; j++ {
|
for j := range total_hints {
|
||||||
if i == j {
|
if i == j {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user