mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-07 13:20:21 +09:00
Merge pull request #3214 from dmaluka/filetype-autocomplete-unknown
Autocomplete `unknown` value in `set filetype ...`
This commit is contained in:
@@ -87,6 +87,13 @@ func filetypeComplete(input string) (string, []string) {
|
||||
}
|
||||
}
|
||||
|
||||
if strings.HasPrefix("off", input) {
|
||||
suggestions = append(suggestions, "off")
|
||||
}
|
||||
if strings.HasPrefix("unknown", input) {
|
||||
suggestions = append(suggestions, "unknown")
|
||||
}
|
||||
|
||||
var chosen string
|
||||
if len(suggestions) == 1 {
|
||||
chosen = suggestions[0]
|
||||
|
||||
Reference in New Issue
Block a user