Fix :foldopen error
This commit is contained in:
parent
41ea90cddf
commit
c6931a519f
@ -2261,7 +2261,7 @@ function! s:GF(mode) abort
|
|||||||
endwhile
|
endwhile
|
||||||
let offset += matchstr(getline(lnum), type.'\zs\d\+')
|
let offset += matchstr(getline(lnum), type.'\zs\d\+')
|
||||||
let ref = getline(search('^'.type.'\{3\} [ab]/','bnW'))[4:-1]
|
let ref = getline(search('^'.type.'\{3\} [ab]/','bnW'))[4:-1]
|
||||||
let dcmd = '+'.offset.'|foldopen'
|
let dcmd = '+'.offset.'|if foldlevel(".")|foldopen!|endif'
|
||||||
let dref = ''
|
let dref = ''
|
||||||
|
|
||||||
elseif getline('.') =~# '^rename from '
|
elseif getline('.') =~# '^rename from '
|
||||||
|
Loading…
Reference in New Issue
Block a user