Skip to content

Commit 05263c1

Browse files
committed
Fix incorrect left is LOCAL, right is REMOTE ordering
Why: From the Git history, it looks like LOCAL and REMOTE were swapped by accident in a refactor of the original shell script this is based on. When I ported that to Vimscript the output was identical between the two and I missed the mistake yet again. Closes #14. Thanks to @jmandawg for the catch!
1 parent 0890619 commit 05263c1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

plugin/diffconflicts.vim

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ function! s:diffconfl()
2828
silent execute "read #". l:origBuf
2929
1delete
3030
silent execute "file RCONFL"
31-
silent execute "g/^=======\\r\\?$/,/^>>>>>>> /d"
32-
silent execute "g/^<<<<<<< /d"
31+
silent execute "g/^<<<<<<< /,/^=======\\r\\?$/d"
32+
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/^<<<<<<< /,/^=======\\r\\?$/d"
39-
silent execute "g/^>>>>>>> /d"
38+
silent execute "g/^=======\\r\\?$/,/^>>>>>>> /d"
39+
silent execute "g/^<<<<<<< /d"
4040
diffthis
4141
endfunction
4242

0 commit comments

Comments
 (0)