From 96d4874fe03510f3e89f049bba0b167eebe3935c Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Tue, 13 Aug 2013 10:02:59 -0700 Subject: [PATCH] Ensuring b:ycm_changedtick always exists Fixes #503 (I hope). --- autoload/youcompleteme.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/autoload/youcompleteme.vim b/autoload/youcompleteme.vim index ea7bd85e..0a7a5056 100644 --- a/autoload/youcompleteme.vim +++ b/autoload/youcompleteme.vim @@ -265,6 +265,10 @@ endfunction function! s:OnFileReadyToParse() + " We need to call this just in case there is no b:ycm_changetick; this can + " happen for special buffers. + call s:SetUpYcmChangedTick() + let buffer_changed = b:changedtick != b:ycm_changedtick.file_ready_to_parse if buffer_changed py ycm_state.OnFileReadyToParse()