From d64c9443f5f7f94133297b3a34ee0e9a892f1ec8 Mon Sep 17 00:00:00 2001 From: Dmytro Maluka Date: Mon, 25 Mar 2024 03:25:13 +0100 Subject: [PATCH] Autocomplete `off` value as well It is also a documented special value of the `filetype` option. --- internal/action/infocomplete.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/action/infocomplete.go b/internal/action/infocomplete.go index 67b6671c..11e60918 100644 --- a/internal/action/infocomplete.go +++ b/internal/action/infocomplete.go @@ -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") }