Fix showing file two in compare view when one/result are open.
author |
Steve Losh <steve@stevelosh.com> |
date |
Wed, 12 Dec 2012 13:09:47 -0500 |
parents |
a3dc06785e35
|
children |
86a478f40df6
|
branches/tags |
(none) |
files |
autoload/splicelib/modes.py |
Changes
--- 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: