Skip to content

Commit

Permalink
Fix :foldopen error
Browse files Browse the repository at this point in the history
  • Loading branch information
tpope committed Mar 29, 2012
1 parent 41ea90c commit c6931a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/fugitive.vim
Expand Up @@ -2261,7 +2261,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.'|foldopen'
let dcmd = '+'.offset.'|if foldlevel(".")|foldopen!|endif'
let dref = ''

elseif getline('.') =~# '^rename from '
Expand Down

0 comments on commit c6931a5

Please sign in to comment.