Fix some failing tests

This commit is contained in:
Kovid Goyal
2023-03-14 20:40:12 +05:30
parent f6d66b2336
commit c19ac531cf
2 changed files with 2 additions and 3 deletions

View File

@@ -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)