mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-10-08 05:04:51 +08:00
Fix blind copy/paste
This commit is contained in:
1 parent
22a832f958
commit
a5e9b2e93e
1 file changed
+2
-3
+2
-3
@@ -1028,11 +1028,10 @@ endfunction
|
||||
function! s:diff_off_all()
|
||||
for nr in range(1,winnr('$'))
|
||||
if getwinvar(nr,'&diff')
|
||||
if winnr != winnr()
|
||||
execute winnr.'wincmd w'
|
||||
if nr != winnr()
|
||||
execute nr.'wincmd w'
|
||||
let restorewinnr = 1
|
||||
endif
|
||||
execute nr.'wincmd w'
|
||||
diffoff
|
||||
if exists('restorewinnr')
|
||||
wincmd p
|
||||
|
||||
Reference in new issue
Block a user