Skip to content

Commit 0275a85

Browse files
authored
Merge pull request #5 from ilAYAli/master
fix: "File does not have correct conflict markers" if &wrapscan
2 parents 2e2e80a + 193549d commit 0275a85

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

autoload/mergetool.vim

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,13 +315,13 @@ endfunction
315315

316316
" Tells if file has conflict markers
317317
function! s:has_conflict_markers()
318-
return search(s:markers['ours']) != 0 &&
319-
\ search(s:markers['theirs']) != 0 &&
320-
\ search(s:markers['delimiter']) != 0
318+
return search(s:markers['ours'], 'w') != 0 &&
319+
\ search(s:markers['theirs'], 'w') != 0 &&
320+
\ search(s:markers['delimiter'], 'w') != 0
321321
endfunction
322322

323323
function s:has_conflict_markers_in_diff3_style()
324-
return search(s:markers['base']) != 0
324+
return search(s:markers['base'],'w') != 0
325325
endfunction
326326

327327
" Discard all changes in buffer, and fill it with original merged file contents

0 commit comments

Comments
 (0)