From 06b5411fb3e113547008c6479a7f268ad373bd72 Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Sun, 17 Nov 2013 14:44:43 -0800 Subject: [PATCH] Revert "Add possibility to disable identifier completion engine" This reverts commit 44d5747d235e8ef27094920e3337bd4284bb6ff9. Conflicts: README.md --- README.md | 6 ++---- autoload/youcompleteme.vim | 4 ---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 85bfdbf4..545bc320 100644 --- a/README.md +++ b/README.md @@ -656,10 +656,8 @@ option is set to `2`, then when the user types a second alphanumeric character after a whitespace character, completion suggestions will be triggered. This option is NOT used for semantic completion. -Setting this to `-1` will disable the identifier completion engine; only the -semantic engine will remain. NOTE: this also turns off other engines that tie -into the identifier completion engine, like UltiSnips trigger completion or -filename completion. +Setting this option to a high number like `99` effectively turns off the +identifier completion engine and just leaves the semantic engine. Default: `2` diff --git a/autoload/youcompleteme.vim b/autoload/youcompleteme.vim index 5346b3c4..e3ef2945 100644 --- a/autoload/youcompleteme.vim +++ b/autoload/youcompleteme.vim @@ -520,10 +520,6 @@ function! s:InvokeCompletion() return endif - if g:ycm_min_num_of_chars_for_completion < 0 - return - endif - if s:InsideCommentOrStringAndShouldStop() || s:OnBlankLine() return endif