From facec198344543e1eae9b65b5e7d22595e5ce1b2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 4 Jul 2026 12:52:34 +0530 Subject: [PATCH] Cleanup previous PR --- docs/changelog.rst | 2 ++ kittens/hints/prefix_free_hints_test.go | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index cb953baa7..92bf2f195 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -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`) +- 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] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/kittens/hints/prefix_free_hints_test.go b/kittens/hints/prefix_free_hints_test.go index 8741164a0..76596b33a 100644 --- a/kittens/hints/prefix_free_hints_test.go +++ b/kittens/hints/prefix_free_hints_test.go @@ -38,12 +38,12 @@ func TestPrefixFreeHints(t *testing.T) { total_hints := int(math.Pow(float64(2), float64(n))) skip := hints_to_skip(total_hints, l) 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) } // Verify that no hint is a prefix of another hint - for i := 0; i < total_hints; i++ { - for j := 0; j < total_hints; j++ { + for i := range total_hints { + for j := range total_hints { if i == j { continue }