From 698065596c9ccee74825ac9667357ce8222ed7b0 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Mon, 7 Oct 2019 18:52:16 +0200 Subject: [PATCH] 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. --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 860fa58..b0189a4 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -15,7 +15,7 @@ endif " Section: Utility function! s:function(name) abort - return function(substitute(a:name,'^s:',matchstr(expand(''), '.*\d\+_'),'')) + return function(substitute(a:name,'^s:',matchstr(expand(''), '.*\zs\d\+_'),'')) endfunction function! s:sub(str,pat,rep) abort