summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShougo Matsushita <Shougo.Matsu@gmail.com>2016-02-18 06:19:19 +0900
committerShougo Matsushita <Shougo.Matsu@gmail.com>2016-02-18 06:19:19 +0900
commitd1247ab46abb0553a32f04faf730f95822319eb9 (patch)
tree09a24556350f3c3e6b9fb5f13996a8c45f328430
parenta60626a4b472a958514dbecb4772dfe22fd30b7a (diff)
downloaddeoplete.nvim-d1247ab46abb0553a32f04faf730f95822319eb9.zip
Improve limit in tag source
-rw-r--r--rplugin/python3/deoplete/sources/tag.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/rplugin/python3/deoplete/sources/tag.py b/rplugin/python3/deoplete/sources/tag.py
index f5fb7c2..c0139a8 100644
--- a/rplugin/python3/deoplete/sources/tag.py
+++ b/rplugin/python3/deoplete/sources/tag.py
@@ -62,6 +62,7 @@ class Source(Base):
candidates += new_candidates
self.__cache[filename] = TagsCacheItem(
mtime, new_candidates)
+ limit -= getsize(filename)
else:
candidates += self.__cache[filename].candidates
return [{'word': x} for x in candidates]