Mercurial > emacs
comparison src/xdisp.c @ 2965:5314fdcd87bc
(display_text_line): Highlight in any frame's sel window.
(display_text_line): Highlight only in selected window.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 22 May 1993 22:06:48 +0000 |
parents | f3c44426bed2 |
children | 6b47ab3b2a88 |
comparison
equal
deleted
inserted
replaced
2964:a0ff2bc5dd05 | 2965:5314fdcd87bc |
---|---|
1721 hpos += XFASTINT (w->left); | 1721 hpos += XFASTINT (w->left); |
1722 get_display_line (f, vpos, XFASTINT (w->left)); | 1722 get_display_line (f, vpos, XFASTINT (w->left)); |
1723 if (tab_width <= 0 || tab_width > 1000) tab_width = 8; | 1723 if (tab_width <= 0 || tab_width > 1000) tab_width = 8; |
1724 | 1724 |
1725 /* Show where to highlight the region. */ | 1725 /* Show where to highlight the region. */ |
1726 if (highlight_region && XMARKER (current_buffer->mark)->buffer != 0) | 1726 if (highlight_region && XMARKER (current_buffer->mark)->buffer != 0 |
1727 /* Highlight only in selected window. */ | |
1728 && w == XWINDOW (FRAME_SELECTED_WINDOW (f))) | |
1727 { | 1729 { |
1728 region_beg = marker_position (current_buffer->mark); | 1730 region_beg = marker_position (current_buffer->mark); |
1729 if (PT < region_beg) | 1731 if (PT < region_beg) |
1730 { | 1732 { |
1731 region_end = region_beg; | 1733 region_end = region_beg; |