Commits

ZyX_I  committed 87f00d8

Add explicit \C to all diffre patterns

  • Participants
  • Parent commits 42878cf

Comments (0)

Files changed (4)

File autoload/aurum/drivers/bazaar.vim

     return r
 endfunction
 "▶1 bzr.diffre :: _, opts → Regex
-let s:diffre='\m^=== \v(\a+)\ file\ (.*)'
+let s:diffre='\m\C^=== \v(\a+)\ file\ (.*)'
 function s:bzr.diffre(repo, opts)
     return s:diffre
 endfunction

File autoload/aurum/drivers/git.vim

     return r
 endfunction
 "▶1 git.diffre :: _, opts → Regex
-let s:diffre='\m^diff --git \v((\")?%s\/.{-}\2) \2%s\/'
+let s:diffre='\m\C^diff --git \v((\")?%s\/.{-}\2) \2%s\/'
 function s:git.diffre(repo, opts)
     if get(a:opts, 'reverse', 0)
         return printf(s:diffre, 'b', 'a')

File autoload/aurum/drivers/mercurial.vim

     " XXX first characters must be identical for hg.getstats(), but it must not 
     " match lines not containing filename for getdifffile()
     if get(a:opts, 'git', 0)
-        return '\m^diff \V--git a/\(\.\{-}\) b/'
+        return '\m\C^diff \V--git a/\(\.\{-}\) b/'
     else
-        return '\m^diff \v.*\-r\ \w+\s(.*)$'
+        return '\m\C^diff \v.*\-r\ \w+\s(.*)$'
     endif
 endfunction
 "▶1 hg.getrepoprop :: repo, prop → a

File autoload/aurum/drivers/subversion.vim

 endfunction
 "▶1 svn.diffre :: _, opts → Regex
 function s:svn.diffre(repo, opts)
-    return '\m^Index: \v(.*)'
+    return '\m\C^Index: \v(.*)'
 endfunction
 "▶1 svn.getrepoprop :: repo, propname → a
 function s:svn.getrepoprop(repo, prop)