Commits

ZyX_I committed 87f00d8

Add explicit \C to all diffre patterns

Comments (0)

Files changed (4)

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

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')

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

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)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.