Commits

Steve Losh  committed b655b7e

Fix showing file two in compare view when one/result are open.

  • Participants
  • Parent commits a3dc067

Comments (0)

Files changed (1)

File autoload/splicelib/modes.py

                 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: