fix: iris keep suggesting when press tab continually

This commit is contained in:
verse91
2026-04-14 12:12:07 +07:00
parent 2c01b2259e
commit fc21a6b0cc
6 changed files with 300 additions and 80 deletions
+1 -3
View File
@@ -13,6 +13,7 @@ func init() {
core.Register(&core.Spec{
Name: "just",
Description: "command runner",
MaxArgs: 1,
Generator: func(tokens []string, prefix string, partial string) []core.Suggestion {
file, err := os.Open("justfile")
if err != nil {
@@ -54,9 +55,6 @@ func init() {
seen[recipe] = true
cmd := recipe
if prefix != "" {
cmd = prefix + " " + recipe
}
desc := "just recipe"
if lastComment != "" {