diff options
Diffstat (limited to 'script/core/completion.lua')
-rw-r--r-- | script/core/completion.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/completion.lua b/script/core/completion.lua index 230860c2..6b503bd5 100644 --- a/script/core/completion.lua +++ b/script/core/completion.lua @@ -111,7 +111,7 @@ local function getDetail(value) detals[#detals+1] = (' = %q'):format(literal) else local str = (' = %.16f'):format(literal) - local dot = str:find('.', 1, true) + local dot = str:find('.', 1, true) or 0 local suffix = str:find('[0]+$', dot + 2) if suffix then detals[#detals+1] = str:sub(1, suffix - 1) |