diff options
Diffstat (limited to 'script/core/completion')
-rw-r--r-- | script/core/completion/completion.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/script/core/completion/completion.lua b/script/core/completion/completion.lua index cb2ce8dd..efd62fb6 100644 --- a/script/core/completion/completion.lua +++ b/script/core/completion/completion.lua @@ -1945,6 +1945,7 @@ local function makeCache(uri, position, results) cache.position= position cache.word = word:lower() cache.length = #word + cache.uri = uri end local function isValidCache(word, result) @@ -1969,6 +1970,9 @@ local function getCache(uri, position) if not cache.results then return nil end + if cache.uri ~= uri then + return nil + end local text = files.getText(uri) local state = files.getState(uri) local word = lookBackward.findWord(text, guide.positionToOffset(state, position)) |