Skip to content

Commit

Permalink
fix number of | in merge base is increased when conflict is nested
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Sep 21, 2020
1 parent 11819f4 commit 0ada2b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugin/conflict_marker.vim
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ endfunction

call s:var('highlight_group', 'Error')
call s:var('begin', '^<<<<<<<')
call s:var('common_ancestors', '^||||||| .*$')
call s:var('common_ancestors', '^|||||||')
call s:var('separator', '^=======$')
call s:var('end', '^>>>>>>>')
call s:var('enable_mappings', 1)
Expand Down
4 changes: 2 additions & 2 deletions t/matchit_spec.vim
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe 'matchit'

it 'defines b:match_words'
Expect 'b:match_words' to_exist
Expect b:match_words =~# ',^<<<<<<<:^||||||| .*$:^=======$:^>>>>>>>'
Expect b:match_words =~# ',^<<<<<<<:^|||||||:^=======$:^>>>>>>>'
end

it 'can jump within a conflict marker'
Expand Down Expand Up @@ -71,7 +71,7 @@ describe 'matchit with diff3'

it 'defines b:match_words'
Expect 'b:match_words' to_exist
Expect b:match_words =~# ',^<<<<<<<:^||||||| .*$:^=======$:^>>>>>>>'
Expect b:match_words =~# ',^<<<<<<<:^|||||||:^=======$:^>>>>>>>'
end

it 'can jump within a conflict marker'
Expand Down

0 comments on commit 0ada2b9

Please sign in to comment.