mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-08 11:33:47 -05:00
Fix incorrect script id from nested function call
Closes https://github.com/tpope/vim-fugitive/pull/1370
This commit is contained in:
@@ -15,7 +15,7 @@ endif
|
|||||||
" Section: Utility
|
" Section: Utility
|
||||||
|
|
||||||
function! s:function(name) abort
|
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
|
endfunction
|
||||||
|
|
||||||
function! s:sub(str,pat,rep) abort
|
function! s:sub(str,pat,rep) abort
|
||||||
|
|||||||
Reference in New Issue
Block a user