mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-08 11:33:47 -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'
|
||||
return 0
|
||||
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
|
||||
endfunction
|
||||
|
||||
|
||||
Reference in New Issue
Block a user