Commits

ZyX_I  committed 7b8b6a0

Add missing \C where appropriate

  • Participants
  • Parent commits 87f00d8

Comments (0)

Files changed (4)

File autoload/aurum/edit.vim

         \}, '"Error while registering command %s for plugin %s: ".v:val'))
 "▶1 globtopat :: glob[, catchstars] → pattern
 function s:F.globtopat(glob, ...)
-    let r='\V\^'
+    let r='\V\C\^'
     let g=substitute(a:glob, '\V//\+', '/', 'g')
     if g[-1:] is# '/'
         let g=g[:-2]
 "▶1 ounescape :: String → String
 let s:unecodes={}
 call map(copy(s:ecodes), 'extend(s:unecodes, {v:val : v:key}, "error")')
-let s:unepattern='\V%\(\['.escape(join(keys(s:unecodes), ''), '\]-^').']\)'
+let s:unepattern='\V\C%\(\['.escape(join(keys(s:unecodes), ''), '\]-^').']\)'
 function s:F.ounescape(str)
     if substitute('a', '.', '\="a"', '') is# 'a'
         return substitute(a:str, s:unepattern, '\=s:unecodes[submatch(1)]', 'g')

File autoload/aurum/log/templates.vim

                 for i in spsets
                     let func[i]=substitute(substitute(substitute(substitute(
                                 \func[i],
-                                \'\Vlen(text[-1])', lstr,  'g'),
+                                \'\V\Clen(text[-1])', lstr,  'g'),
                                 \'\v\ (\d+%([+\-]\d+)+)',
                                 \       '\='.tr(s:addexpr, '+', '1'),
-                                \                          'g'),
-                                \'\Vlen(text)',     '&+1', 'g'),
-                                \'\Vlen(text)\v(%([+\-]\d+)+)',
+                                \                            'g'),
+                                \'\V\Clen(text)',     '&+1', 'g'),
+                                \'\V\Clen(text)\v(%([+\-]\d+)+)',
                                 \       '\="len(text)".'.s:addexpr,
-                                \                          'g')
+                                \                            'g')
                 endfor
                 let func+=['let text+=['.str.'.'.a:s.']']
                 return
                 "▲3
                 let expr=substitute(substitute(substitute(substitute(
                             \substitute(expr,
-                            \'\V@@@', marg,      'g'),
-                            \'\V@.@', 'a:cs',    'g'),
-                            \'\V@:@', 'a:repo',  'g'),
-                            \'\V@o@', 'a:opts',  'g'),
-                            \'\V@-@', 'a:width', 'g')
+                            \'\V\C@@@', marg,      'g'),
+                            \'\V\C@.@', 'a:cs',    'g'),
+                            \'\V\C@:@', 'a:repo',  'g'),
+                            \'\V\C@o@', 'a:opts',  'g'),
+                            \'\V\C@-@', 'a:width', 'g')
                 "▶2 Process positional parameters
                 for j in range(len(ke)-2)
                     let expr=substitute(expr, '@'.j.'@',

File autoload/aurum/move.vim

     elseif a:0==2 && a:2=~#'[*?]' &&
                 \substitute(a:1, '\v%(^|$|\\.|[^*])[^*?]*', '-', 'g') is#
                 \substitute(a:2, '\v%(^|$|\\.|[^*])[^*?]*', '-', 'g')
-        let pattern=s:_r.globtopat(repo.functions.reltorepo(repo, a:1),
-                    \                       1)
+        let pattern=s:_r.globtopat(repo.functions.reltorepo(repo, a:1), 1)
         let repl=split(a:2, '\V\(**\?\|?\)', 1)
         let moves={}
         for [file, match] in filter(map(copy(allfiles),

File ftplugin/aurumannotate.vim

             execute lnr
         elseif exists('line')
             0
-            call search('\V\^'.escape(line, '\').'\$', 'cW')
+            call search('\V\C\^'.escape(line, '\').'\$', 'cW')
             let lnr=line('.')
             wincmd p
             execute lnr