aboutsummaryrefslogtreecommitdiff
path: root/runtime/ftplugin/gprof.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/ftplugin/gprof.vim')
-rw-r--r--runtime/ftplugin/gprof.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/ftplugin/gprof.vim b/runtime/ftplugin/gprof.vim
index 750751c372..d4547ae9a6 100644
--- a/runtime/ftplugin/gprof.vim
+++ b/runtime/ftplugin/gprof.vim
@@ -1,6 +1,6 @@
" Language: gprof
" Maintainer: Dominique Pelle <dominique.pelle@gmail.com>
-" Last Change: 2013 Jun 09
+" Last Change: 2021 Apr 08
" When cursor is on one line of the gprof call graph,
" calling this function jumps to this function in the call graph.
@@ -16,7 +16,7 @@ fun! <SID>GprofJumpToFunctionIndex()
norm! $y%
call search('^' . escape(@", '[]'), 'sw')
norm! zz
- elseif l:line =~ '^\(\s\+[0-9\.]\+\)\{3}\s\+'
+ elseif l:line =~ '^\(\s*[0-9\.]\+\)\{3}\s\+'
" We're in line in the flat profile.
norm! 55|eby$
call search('^\[\d\+\].*\d\s\+' . escape(@", '[]*.') . '\>', 'sW')