summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-rw-r--r--script/core/completion.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/script/core/completion.lua b/script/core/completion.lua
index e7ebd1e0..a36cf8f4 100644
--- a/script/core/completion.lua
+++ b/script/core/completion.lua
@@ -1158,6 +1158,11 @@ local function tryWord(ast, text, offset, results)
end
local hasSpace = finish ~= offset
if isInString(ast, offset) then
+ if not hasSpace then
+ if #results == 0 then
+ checkCommon(ast, word, text, offset, results)
+ end
+ end
else
local parent, oop = findParent(ast, text, start - 1)
if parent then