Use command summaries in completion descriptions

This commit is contained in:
Paul Ouellette
2019-06-18 12:15:56 -04:00
parent 56364ff50f
commit 188fb9d8ac

View File

@@ -1111,8 +1111,8 @@ function Parser:add_complete(value)
end
local function get_short_description(element)
local short = element._description:match("^(.-)%.%s")
return short or element._description:match("^(.-)%.?$")
local short = element:_get_description():match("^(.-)%.%s")
return short or element:_get_description():match("^(.-)%.?$")
end
local function get_options(parser)