From caa0fb4285e26299f4d13979be4a7be20042bd3b Mon Sep 17 00:00:00 2001 From: micbou Date: Tue, 17 Apr 2018 17:39:25 +0200 Subject: [PATCH] Do not return omnifunc suggestions if server crashed --- python/ycm/omni_completer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/ycm/omni_completer.py b/python/ycm/omni_completer.py index d14536b8..fcdb01f7 100644 --- a/python/ycm/omni_completer.py +++ b/python/ycm/omni_completer.py @@ -130,4 +130,4 @@ class OmniCompleter( Completer ): response = BaseRequest.PostDataToHandler( request_data, 'filter_and_sort_candidates' ) - return response if response is not None else candidates + return response if response is not None else []