Skip to content

Commit 16b0806

Browse files
authored
Merge pull request #10 from whiteinge/mixed-line-endings
Also match Windows line endings
2 parents 7b9db25 + 1a337a9 commit 16b0806

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/diffconflicts.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ function! s:diffconfl()
2828
silent execute "read #". l:origBuf
2929
1delete
3030
silent execute "file RCONFL"
31-
silent execute "g/^=======$/,/^>>>>>>> /d"
31+
silent execute "g/^=======\\r\\?$/,/^>>>>>>> /d"
3232
silent execute "g/^<<<<<<< /d"
3333
setlocal nomodifiable readonly buftype=nofile bufhidden=delete nobuflisted
3434
diffthis
3535

3636
" Set up the left-hand side.
3737
wincmd p
38-
silent execute "g/^<<<<<<< /,/^=======$/d"
38+
silent execute "g/^<<<<<<< /,/^=======\\r\\?$/d"
3939
silent execute "g/^>>>>>>> /d"
4040
diffthis
4141
endfunction

0 commit comments

Comments
 (0)