Skip to content
Browse files

- Fixed condition.

  • Loading branch information...
1 parent d1bf5ca commit 71a707f4e230c776b53ce5200fce66f79408052b @Shougo Shougo committed Jan 2, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 ftplugin/cpp.vim
View
4 ftplugin/cpp.vim
@@ -44,15 +44,15 @@ function! s:complete_dot()
endfunction
function! s:complete_arrow()
- if !g:clang_complete_auto || s:get_cur_text() =~ '-$'
+ if !g:clang_complete_auto || s:get_cur_text() !~ '-$'
return '>'
endif
return '>' . s:launch_completion()
endfunction
function! s:complete_colon()
- if !g:clang_complete_auto || s:get_cur_text() =~ ':$'
+ if !g:clang_complete_auto || s:get_cur_text() !~ ':$'
return ':'
endif

0 comments on commit 71a707f

Please sign in to comment.
Something went wrong with that request. Please try again.