From 28abadcb847d2026b76f169a147d69ceec8e11a9 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Mon, 7 Oct 2019 12:08:04 -0400 Subject: [PATCH] Fix incorrect script id from nested function call Closes https://github.com/tpope/vim-fugitive/pull/1370 --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index c645926..860fa58 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(''), '.*\d\+_'),'')) endfunction function! s:sub(str,pat,rep) abort