Commit 0846761d authored by Andreas Schwab's avatar Andreas Schwab
Browse files

(compare-windows): Try to find the next window in

the current frame before looking at the other frames.
parent 39d52386
......@@ -81,7 +81,9 @@ If `compare-ignore-case' is non-nil, changes in case are also ignored."
'compare-windows-skip-whitespace
compare-windows-whitespace))))
(setq p1 (point) b1 (current-buffer))
(setq w2 (next-window (selected-window) nil 'visible))
(setq w2 (next-window (selected-window)))
(if (eq w2 (selected-window))
(setq w2 (next-window (selected-window) nil 'visible)))
(if (eq w2 (selected-window))
(error "No other window"))
(setq p2 (window-point w2)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment