This commit is contained in:
vb
2026-02-07 15:39:05 +01:00
parent c331ad2001
commit 6bcff202b4

View File

@@ -95,7 +95,7 @@ func flagSuggestions(cmd string, words []string, text string) []prompt.Suggest {
// Update/edit: suggest issue IDs when typing the ID, flags after ID is provided // Update/edit: suggest issue IDs when typing the ID, flags after ID is provided
if cmd == "update" || cmd == "edit" { if cmd == "update" || cmd == "edit" {
if len(words) >= 2 && (lastWord == "" || strings.HasPrefix(lastWord, "-")) { if len(words) >= 2 && (lastWord == "" || strings.HasPrefix(lastWord, "-")) {
// ID already provided (trailing space) or typing a flag - suggest flags // ID already provided (trailing space) or typing a flag -> suggest update flags
flags := updateFlags flags := updateFlags
if lastWord == "" { if lastWord == "" {
return flags return flags