Fix incorrect script id from nested function call

Closes https://github.com/tpope/vim-fugitive/pull/1370
This commit is contained in:
Tim Pope
2019-10-07 12:08:04 -04:00
parent a3ba0ca67f
commit 28abadcb84

View File

@@ -15,7 +15,7 @@ endif
" Section: Utility
function! s:function(name) abort
return function(substitute(a:name,'^s:',matchstr(expand('<sfile>'), '<SNR>\d\+_'),''))
return function(substitute(a:name,'^s:',matchstr(expand('<sfile>'), '.*<SNR>\d\+_'),''))
endfunction
function! s:sub(str,pat,rep) abort