mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-12-08 04:54:52 +08:00
Don't set $COLUMNS on legacy :! implementation
It's unnecessary and offensive to the eye.
This commit is contained in:
@@ -3393,7 +3393,6 @@ function! fugitive#Command(line1, line2, range, bang, mods, arg) abort
|
|||||||
let pager = 1
|
let pager = 1
|
||||||
let stream = exists('*setbufline')
|
let stream = exists('*setbufline')
|
||||||
let do_edit = substitute(s:Mods(a:mods, &splitbelow ? 'botright' : 'topleft'), '\<tab\>', '-tab', 'g') . 'pedit!'
|
let do_edit = substitute(s:Mods(a:mods, &splitbelow ? 'botright' : 'topleft'), '\<tab\>', '-tab', 'g') . 'pedit!'
|
||||||
call extend(env, {'COLUMNS': '' . (&columns - 1)}, 'keep')
|
|
||||||
elseif pager
|
elseif pager
|
||||||
let allow_pty = 0
|
let allow_pty = 0
|
||||||
if pager is# 2 && a:bang && a:line2 >= 0
|
if pager is# 2 && a:bang && a:line2 >= 0
|
||||||
@@ -3407,10 +3406,9 @@ function! fugitive#Command(line1, line2, range, bang, mods, arg) abort
|
|||||||
call s:BlurStatus()
|
call s:BlurStatus()
|
||||||
endif
|
endif
|
||||||
call extend(env, {'COLUMNS': '' . get(g:, 'fugitive_columns', 80)}, 'keep')
|
call extend(env, {'COLUMNS': '' . get(g:, 'fugitive_columns', 80)}, 'keep')
|
||||||
else
|
|
||||||
call extend(env, {'COLUMNS': '' . (&columns - 1)}, 'keep')
|
|
||||||
endif
|
endif
|
||||||
if s:RunJobs()
|
if s:RunJobs()
|
||||||
|
call extend(env, {'COLUMNS': '' . (&columns - 1)}, 'keep')
|
||||||
let state.pty = allow_pty && get(g:, 'fugitive_pty', has('unix') && !has('win32unix') && (has('patch-8.0.0744') || has('nvim')) && fugitive#GitVersion() !~# '\.windows\>')
|
let state.pty = allow_pty && get(g:, 'fugitive_pty', has('unix') && !has('win32unix') && (has('patch-8.0.0744') || has('nvim')) && fugitive#GitVersion() !~# '\.windows\>')
|
||||||
if !state.pty
|
if !state.pty
|
||||||
let args = s:AskPassArgs(dir) + args
|
let args = s:AskPassArgs(dir) + args
|
||||||
|
|||||||
Reference in New Issue
Block a user