Skip to content

Commit

Permalink
Autocomplete off value as well
Browse files Browse the repository at this point in the history
It is also a documented special value of the `filetype` option.
  • Loading branch information
dmaluka committed Mar 25, 2024
1 parent ee6519f commit d64c944
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/action/infocomplete.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ func filetypeComplete(input string) (string, []string) {
}
}

if strings.HasPrefix("off", input) {
suggestions = append(suggestions, "off")
}
if strings.HasPrefix("unknown", input) {
suggestions = append(suggestions, "unknown")
}
Expand Down

0 comments on commit d64c944

Please # to comment.