We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2be2d92 commit 323a9c0Copy full SHA for 323a9c0
plugin/clang.vim
@@ -892,9 +892,14 @@ endf
892
" 'diagnostics': [], // diagnostics info
893
" }
894
func! ClangComplete(findstart, base)
895
- call s:PDebug("ClangComplete", "start")
896
-
897
let l:gvars = s:GlobalVarSet()
+ let l:res = s:ClangComplete(a:findstart, a:base)
+ call s:GlobalVarRestore(l:gvars)
898
+ return l:res
899
+endf
900
+
901
+func! s:ClangComplete(findstart, base)
902
+ call s:PDebug("ClangComplete", "start")
903
904
if a:findstart
905
call s:PDebug("ClangComplete", "phase 1")
@@ -977,8 +982,6 @@ func! ClangComplete(findstart, base)
977
982
return []
978
983
endif
979
984
980
981
- call s:GlobalVarRestore(l:gvars)
985
endf
986
"}}}
987
0 commit comments