Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove unnecessary assignment

Only print abbr, if no snippets are enabled.

Conflicts:
	plugin/clang_complete.vim
  • Loading branch information...
commit 68b0691bc6eb7e010d445a6bea8abf01f340ec52 1 parent 449b272
@tobig tobig authored committed
Showing with 5 additions and 7 deletions.
  1. +4 −6 plugin/clang_complete.vim
  2. +1 −1  plugin/libclang.py
View
10 plugin/clang_complete.vim
@@ -343,13 +343,11 @@ function! ClangComplete(findstart, base)
python vim.command('let l:res = ' + completions)
python timer.registerEvent("Load into vimscript")
- for item in l:res
- if g:clang_snippets == 1
+ if g:clang_snippets == 1
+ for item in l:res
let item['word'] = b:AddSnip(item['info'], item['args_pos'])
- else
- let item['word'] = item['abbr']
- endif
- endfor
+ endfor
+ endif
inoremap <expr> <buffer> <C-Y> <SID>HandlePossibleSelectionCtrlY()
augroup ClangComplete
View
2  plugin/libclang.py
@@ -391,7 +391,7 @@ def formatResult(result):
if returnValue:
menu = returnValue.spelling + " " + menu
- completion['word'] = word
+ completion['word'] = abbr
completion['abbr'] = abbr
completion['menu'] = menu
completion['info'] = word
Please sign in to comment.
Something went wrong with that request. Please try again.