Skip to content

Commit

Permalink
Add a test for has('mac') to fix E474
Browse files Browse the repository at this point in the history
This fixes #2.
  • Loading branch information
agude committed Sep 11, 2021
1 parent a1ea0cd commit 802d29c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vim/vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -439,8 +439,10 @@ endif
" Diff: working with two to four versions of the same file
"-----------------------------------------------------------------------------

if has("patch-8.1.0360")
set diffopt+=internal,algorithm:patience
if has('mac') && $VIM == '/usr/share/vim'
set diffopt-=internal
elseif has('patch-8.1.0360')
set diffopt+=algorithm:patience
endif

"-----------------------------------------------------------------------------
Expand Down

0 comments on commit 802d29c

Please sign in to comment.