]> git.madduck.net Git - etc/vim.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Fix test errors with latest vim
authorHiroshi Shirosaki <h.shirosaki@gmail.com>
Thu, 28 Feb 2019 00:00:04 +0000 (09:00 +0900)
committerHiroshi Shirosaki <h.shirosaki@gmail.com>
Thu, 28 Feb 2019 00:00:04 +0000 (09:00 +0900)
Do not use a: for non function arguments.

test/vimrc

index 463cbd8f552f0c056304f3b56ba91e8ddf40a44a..fe53a7586bf2f25ffa54c7397282943b12ae16e9 100644 (file)
@@ -11,14 +11,14 @@ filetype indent on
 syntax on
 
 function! Markdown_GetScriptID(fname) abort
-    let a:snlist = ''
-    redir => a:snlist
+    let l:snlist = ''
+    redir => l:snlist
     silent! scriptnames
     redir END
-    let a:mx = '^\s*\(\d\+\):\s*\(.*\)$'
-    for a:line in split(a:snlist, "\n")
-        if stridx(substitute(a:line, '\\', '/', 'g'), a:fname) >= 0
-            return substitute(a:line, a:mx, '\1', '')
+    let l:mx = '^\s*\(\d\+\):\s*\(.*\)$'
+    for l:line in split(l:snlist, "\n")
+        if stridx(substitute(l:line, '\\', '/', 'g'), a:fname) >= 0
+            return substitute(l:line, l:mx, '\1', '')
         endif
     endfor
 endfunction