aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index a2f687cfb87..17ee38f6fc0 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -1256,16 +1256,18 @@ pos_visible_p (w, charpos, x, y, rtop, rbot, exact_mode_line_heights_p)
1256{ 1256{
1257 struct it it; 1257 struct it it;
1258 struct text_pos top; 1258 struct text_pos top;
1259 int visible_p; 1259 int visible_p = 0;
1260 struct buffer *old_buffer = NULL; 1260 struct buffer *old_buffer = NULL;
1261 1261
1262 if (noninteractive)
1263 return visible_p;
1264
1262 if (XBUFFER (w->buffer) != current_buffer) 1265 if (XBUFFER (w->buffer) != current_buffer)
1263 { 1266 {
1264 old_buffer = current_buffer; 1267 old_buffer = current_buffer;
1265 set_buffer_internal_1 (XBUFFER (w->buffer)); 1268 set_buffer_internal_1 (XBUFFER (w->buffer));
1266 } 1269 }
1267 1270
1268 visible_p = 0;
1269 SET_TEXT_POS_FROM_MARKER (top, w->start); 1271 SET_TEXT_POS_FROM_MARKER (top, w->start);
1270 1272
1271 /* Compute exact mode line heights, if requested. */ 1273 /* Compute exact mode line heights, if requested. */