Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix function * exists error when re-sourced

  • Loading branch information...
commit 6717a3e97046bb76cbc1b325b4bb3fe0757ea9c2 1 parent f41e537
@hlissner hlissner authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 plugin/phpns.vim
View
4 plugin/phpns.vim
@@ -145,14 +145,14 @@ function! PhpExpandClass()
call search('\([[:blank:]]*[[:alnum:]\\]\)*', 'ceW')
endfunction
-function s:searchCapture(pattern, nr)
+function! s:searchCapture(pattern, nr)
let s:capture = 0
let str = join(getline(0, line('$')),"\n")
call substitute(str, a:pattern, '\=[submatch(0), s:saveCapture(submatch('.a:nr.'))][0]', 'e')
return s:capture
endfunction
-function s:saveCapture(capture)
+function! s:saveCapture(capture)
let s:capture = a:capture
endfunction

0 comments on commit 6717a3e

Please sign in to comment.
Something went wrong with that request. Please try again.