Fix fold opening

This commit is contained in:
Tim Pope 2014-06-10 18:46:04 -04:00
parent 416165f063
commit 6f5fd2add0

View File

@ -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 '