diff options
| author | Richard M. Stallman <rms@gnu.org> | 1993-05-22 22:06:48 +0000 |
|---|---|---|
| committer | Richard M. Stallman <rms@gnu.org> | 1993-05-22 22:06:48 +0000 |
| commit | 1613b7573b2e4acd1444ca0042d1358b9a0af855 (patch) | |
| tree | db1902bced7af03f14ae0cd329bdd82baa3ec3d2 | |
| parent | bcb2db92ba655162cb4664ebc501ac6551539754 (diff) | |
| download | emacs-1613b7573b2e4acd1444ca0042d1358b9a0af855.tar.gz | |
(display_text_line): Highlight in any frame's sel window.
(display_text_line): Highlight only in selected window.
| -rw-r--r-- | src/xdisp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index b991aeb5805..e72ca032083 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -1723,7 +1723,9 @@ display_text_line (w, start, vpos, hpos, taboffset) if (tab_width <= 0 || tab_width > 1000) tab_width = 8; /* Show where to highlight the region. */ - if (highlight_region && XMARKER (current_buffer->mark)->buffer != 0) + if (highlight_region && XMARKER (current_buffer->mark)->buffer != 0 + /* Highlight only in selected window. */ + && w == XWINDOW (FRAME_SELECTED_WINDOW (f))) { region_beg = marker_position (current_buffer->mark); if (PT < region_beg) |
