# HG changeset patch # User Steve Losh # Date 1355335787 18000 # Node ID b655b7e1bfe71d426cde45adb69a1c3329991986 # Parent a3dc06785e35de2097168af2aec8be739d7d6782 Fix showing file two in compare view when one/result are open. diff -r a3dc06785e35 -r b655b7e1bfe7 autoload/splicelib/modes.py --- a/autoload/splicelib/modes.py Wed Dec 12 13:02:00 2012 -0500 +++ b/autoload/splicelib/modes.py Wed Dec 12 13:09:47 2012 -0500 @@ -650,6 +650,15 @@ open_two(curwindow) return + # If file one and the result are showing, then we open file two in the + # current window. + windows.focus(2) + if buffers.current == buffers.one: + windows.focus(3) + if buffers.current == buffers.result: + open_two(curwindow) + return + # If file one is in window 2, then we open file two in window 2. windows.focus(3) if buffers.current == buffers.two: