Zsh completions: return 1 if no completions

This commit is contained in:
Paul Ouellette
2019-07-18 16:19:01 -04:00
parent 397c1fd739
commit b265bf58d1

View File

@@ -1398,6 +1398,7 @@ function Parser:get_zsh_complete()
end
self:_zsh_arguments(buf, self._name, 2)
self:_zsh_complete_help(buf, cmds_buf, self._name, 2)
table.insert(buf, "\n return 1")
table.insert(buf, "}")
local result = table.concat(buf, "\n")