From a5e9b2e93ed07423c2619d6719d9c1a91b2c0679 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sat, 13 Nov 2010 20:15:26 -0500 Subject: [PATCH] Fix blind copy/paste --- plugin/fugitive.vim | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 785d4a4..9603874 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -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