Fix fold opening
This commit is contained in:
parent
416165f063
commit
6f5fd2add0
@ -1775,7 +1775,7 @@ function! s:BlameCommit(cmd) abort
|
|||||||
let offset -= 1
|
let offset -= 1
|
||||||
endif
|
endif
|
||||||
endwhile
|
endwhile
|
||||||
return 'if foldlevel(".")|foldopen!|endif'
|
return 'normal! zv'
|
||||||
endif
|
endif
|
||||||
endwhile
|
endwhile
|
||||||
execute head
|
execute head
|
||||||
@ -2486,7 +2486,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.'|if foldlevel(".")|foldopen!|endif'
|
let dcmd = '+'.offset.'|normal! zv'
|
||||||
let dref = ''
|
let dref = ''
|
||||||
|
|
||||||
elseif getline('.') =~# '^rename from '
|
elseif getline('.') =~# '^rename from '
|
||||||
|
Loading…
x
Reference in New Issue
Block a user