Make sure that cpoptions contains B

Closes #254, #255
This commit is contained in:
Danek Duvall 2018-03-26 11:40:44 -07:00 committed by Marco Hinz
parent 26ed57e0fe
commit e76d00ccc0
No known key found for this signature in database
GPG Key ID: 1C980A1B657B4A4F

View File

@ -73,6 +73,8 @@ command! -nargs=0 -bar SignifyToggle call sy#toggle()
command! -nargs=0 -bar SignifyToggleHighlight call sy#highlight#line_toggle()
" Init: mappings {{{1
let s:cpoptions = &cpoptions
set cpoptions+=B
" hunk jumping
nnoremap <silent> <expr> <plug>(signify-next-hunk) &diff
@ -97,6 +99,9 @@ xnoremap <silent> <plug>(signify-motion-inner-visual) :<c-u>call sy#util#hunk_t
onoremap <silent> <plug>(signify-motion-outer-pending) :<c-u>call sy#util#hunk_text_object(1)<cr>
xnoremap <silent> <plug>(signify-motion-outer-visual) :<c-u>call sy#util#hunk_text_object(1)<cr>
let &cpoptions = s:cpoptions
unlet s:cpoptions
" Function: save {{{1
function! s:save()