From c19ac531cfed528da1f5714ca3d1257c2493f693 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 14 Mar 2023 20:40:12 +0530 Subject: [PATCH] Fix some failing tests --- kitty_tests/check_build.py | 3 +-- tools/themes/collection.go | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/kitty_tests/check_build.py b/kitty_tests/check_build.py index 89745f3d4..5ca0252e9 100644 --- a/kitty_tests/check_build.py +++ b/kitty_tests/check_build.py @@ -27,10 +27,9 @@ class TestBuild(BaseTest): def test_loading_extensions(self) -> None: import kitty.fast_data_types as fdt - from kittens.choose import subseq_matcher from kittens.diff import diff_speedup from kittens.transfer import rsync - del fdt, subseq_matcher, diff_speedup, rsync + del fdt, diff_speedup, rsync def test_loading_shaders(self) -> None: from kitty.utils import load_shaders diff --git a/tools/themes/collection.go b/tools/themes/collection.go index a5696b8a7..2a24ff374 100644 --- a/tools/themes/collection.go +++ b/tools/themes/collection.go @@ -966,7 +966,7 @@ func GetThemeNames(cache_age time.Duration) (ans []string, err error) { func CompleteThemes(completions *cli.Completions, word string, arg_num int) { names, err := GetThemeNames(-1) - if err != nil { + if err == nil { mg := completions.AddMatchGroup("Themes") for _, theme_name := range names { theme_name = strings.TrimSpace(theme_name)