mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-07 17:43:53 +02:00
Replace use of sync.Once
This commit is contained in:
@@ -66,8 +66,8 @@ func complete_plus_open(completions *cli.Completions, word string, arg_num int)
|
||||
}
|
||||
|
||||
func complete_themes(completions *cli.Completions, word string, arg_num int) {
|
||||
kitty, err := utils.KittyExe()
|
||||
if err == nil {
|
||||
kitty := utils.KittyExe()
|
||||
if kitty != "" {
|
||||
out, err := exec.Command(kitty, "+runpy", "from kittens.themes.collection import *; print_theme_names()").Output()
|
||||
if err == nil {
|
||||
mg := completions.AddMatchGroup("Themes")
|
||||
|
||||
Reference in New Issue
Block a user