mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 13:53:51 -05:00
Fix fold opening
This commit is contained in:
@@ -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 '
|
||||||
|
|||||||
Reference in New Issue
Block a user