aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/window.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/window.c b/src/window.c
index 558426135f6..3d807342346 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1724,8 +1724,9 @@ Returns the window displaying BUFFER.")
1724 && XBUFFER (XWINDOW (selected_window)->buffer) == XBUFFER (buffer)) 1724 && XBUFFER (XWINDOW (selected_window)->buffer) == XBUFFER (buffer))
1725 return selected_window; 1725 return selected_window;
1726 1726
1727 /* If pop_up_frames, look for a window on any frame, showing BUFFER. */ 1727 /* If pop_up_frames,
1728 window = Fget_buffer_window (buffer, pop_up_frames ? Qt : Qnil); 1728 look for a window showing BUFFER on any visible frame. */
1729 window = Fget_buffer_window (buffer, pop_up_frames ? Qvisible : Qnil);
1729 if (!NILP (window) 1730 if (!NILP (window)
1730 && (NILP (not_this_window) || !EQ (window, selected_window))) 1731 && (NILP (not_this_window) || !EQ (window, selected_window)))
1731 return window; 1732 return window;