mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-10 12:33:46 -05:00
Include foldcolumn in diff width calculation
This commit is contained in:
@@ -1412,7 +1412,8 @@ function! s:diff_horizontal() abort
|
|||||||
elseif &diffopt =~# 'vertical'
|
elseif &diffopt =~# 'vertical'
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
return winwidth(0) <= 2 * (&tw ? &tw : 80)
|
let fdc = matchstr(&diffopt, 'foldcolumn:\zs\d\+')
|
||||||
|
return winwidth(0) <= 2 * ((&tw ? &tw : 80) + (empty(fdc) ? 2 : fdc))
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user