commit e8e497eb838a8f1328898d64708674dffcbbc3e4 (tree)
parent e142a27ab8a37e8f3b99842ec0c5e58a4fa3fe02
Author: Tim Pope <code@tpope.net>
Date: Sun, 1 Apr 2012 13:17:13 -0400
Open fold when jumping to commit from blame
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim
@@ -1585,7 +1585,7 @@ function! s:BlameCommit(cmd) abort
let offset -= 1
endif
endwhile
- return ''
+ return 'if foldlevel(".")|foldopen!|endif'
endif
endwhile
execute head