Permalink
Browse files

- Fixed condition.

  • Loading branch information...
Shougo committed Jan 1, 2012
1 parent d1bf5ca commit 71a707f4e230c776b53ce5200fce66f79408052b
Showing with 2 additions and 2 deletions.
  1. +2 −2 ftplugin/cpp.vim
View
@@ -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.