From 6f5fd2add0e2d595111c60cfc8e715d3dfb19313 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 10 Jun 2014 18:46:04 -0400 Subject: [PATCH] Fix fold opening --- plugin/fugitive.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index fc5cc4f..00509e9 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -1775,7 +1775,7 @@ function! s:BlameCommit(cmd) abort let offset -= 1 endif endwhile - return 'if foldlevel(".")|foldopen!|endif' + return 'normal! zv' endif endwhile execute head @@ -2486,7 +2486,7 @@ function! s:GF(mode) abort endwhile let offset += matchstr(getline(lnum), type.'\zs\d\+') let ref = getline(search('^'.type.'\{3\} [ab]/','bnW'))[4:-1] - let dcmd = '+'.offset.'|if foldlevel(".")|foldopen!|endif' + let dcmd = '+'.offset.'|normal! zv' let dref = '' elseif getline('.') =~# '^rename from '