From b254ca56f768b72b3ba136ccd81abd919523036a Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Tue, 24 May 2016 08:40:41 +0900 Subject: Fix #277 auto completion start length problem --- rplugin/python3/deoplete/sources/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rplugin/python3/deoplete') 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'] -- cgit v1.2.3