Fix :foldopen error

This commit is contained in:
Tim Pope 2012-03-28 20:31:19 -04:00
parent 41ea90cddf
commit c6931a519f

View File

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