mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 22:03:51 -05:00
Fix blind copy/paste
This commit is contained in:
@@ -1028,11 +1028,10 @@ endfunction
|
|||||||
function! s:diff_off_all()
|
function! s:diff_off_all()
|
||||||
for nr in range(1,winnr('$'))
|
for nr in range(1,winnr('$'))
|
||||||
if getwinvar(nr,'&diff')
|
if getwinvar(nr,'&diff')
|
||||||
if winnr != winnr()
|
if nr != winnr()
|
||||||
execute winnr.'wincmd w'
|
execute nr.'wincmd w'
|
||||||
let restorewinnr = 1
|
let restorewinnr = 1
|
||||||
endif
|
endif
|
||||||
execute nr.'wincmd w'
|
|
||||||
diffoff
|
diffoff
|
||||||
if exists('restorewinnr')
|
if exists('restorewinnr')
|
||||||
wincmd p
|
wincmd p
|
||||||
|
|||||||
Reference in New Issue
Block a user