Permalink
Browse files

Remove unnecessary assignment

Only print abbr, if no snippets are enabled.

Conflicts:
	plugin/clang_complete.vim
  • Loading branch information...
tobig authored and Rip-Rip committed Jan 20, 2013
1 parent 449b272 commit 68b0691bc6eb7e010d445a6bea8abf01f340ec52
Showing with 5 additions and 7 deletions.
  1. +4 −6 plugin/clang_complete.vim
  2. +1 −1 plugin/libclang.py
View
@@ -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
@@ -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

0 comments on commit 68b0691

Please sign in to comment.