Skip to content

Commit

Permalink
Revert some changes to get back compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mkc188 committed Nov 19, 2014
1 parent 2f2fdd7 commit 1330d0c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion plugin/clang_complete.vim
Expand Up @@ -476,13 +476,18 @@ function! s:HandlePossibleSelectionCtrlY()
endfunction

function! s:TriggerSnippet()
execute 'inoremap <script> <buffer> <silent> <CR> '.s:old_cr
" Restore original return key mapping
silent! execute 'inoremap <script> <buffer> <silent> <CR> '.s:old_cr

" Dont bother doing anything until we're sure the user exited the menu
if !b:snippet_chosen
return
endif

" Stop monitoring as we'll trigger a snippet
if empty(s:old_cr)
silent! iunmap <buffer> <CR>
endif
silent! iunmap <buffer> <C-Y>
augroup ClangComplete
au! CursorMovedI <buffer>
Expand Down

0 comments on commit 1330d0c

Please sign in to comment.