summaryrefslogtreecommitdiff
path: root/rplugin/python3/deoplete
diff options
context:
space:
mode:
authorShougo Matsushita <Shougo.Matsu@gmail.com>2016-05-24 08:40:41 +0900
committerShougo Matsushita <Shougo.Matsu@gmail.com>2016-05-24 08:40:41 +0900
commitb254ca56f768b72b3ba136ccd81abd919523036a (patch)
tree641a245a02a8c9c507efc8edd0a635c516587c18 /rplugin/python3/deoplete
parent807d3e84ca37f938e7fab4034a7a491224e5d550 (diff)
downloaddeoplete.nvim-b254ca56f768b72b3ba136ccd81abd919523036a.zip
Fix #277 auto completion start length problem
Diffstat (limited to 'rplugin/python3/deoplete')
-rw-r--r--rplugin/python3/deoplete/sources/base.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/rplugin/python3/deoplete/sources/base.py b/rplugin/python3/deoplete/sources/base.py
index 95024ef..f54da61 100644
--- a/rplugin/python3/deoplete/sources/base.py
+++ b/rplugin/python3/deoplete/sources/base.py
@@ -16,7 +16,8 @@ class Base(LoggingMixin):
self.name = 'base'
self.description = ''
self.mark = ''
- self.min_pattern_length = 2
+ self.min_pattern_length = self.vim.vars[
+ 'deoplete#auto_complete_start_length']
self.max_pattern_length = 80
self.max_abbr_width = self.vim.vars['deoplete#max_abbr_width']
self.max_menu_width = self.vim.vars['deoplete#max_menu_width']