mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 14:23:51 -05:00
Fix incorrect script id (part 2)
This is a follow-up to 28abadc.
Without the \zs, everything up to the regexp for the script ID would be
used.
Now, s:function() is the same as the one used in scriptease.
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>'), '.*\zs<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