diff options
| author | Kim F. Storm | 2002-02-26 22:55:08 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2002-02-26 22:55:08 +0000 |
| commit | 890d33d457a183fdd81c48bffab2e0dd2f8b5ddb (patch) | |
| tree | c37985190b5b69faa598ad4b1a91ae1418beb0a1 /src | |
| parent | 683086358ac6e3f42d1cd85f0345dd4436d785ac (diff) | |
| download | emacs-890d33d457a183fdd81c48bffab2e0dd2f8b5ddb.tar.gz emacs-890d33d457a183fdd81c48bffab2e0dd2f8b5ddb.zip | |
(init_iterator): Compare with Vminibuf_selected_window
instead of Vminibuf_scroll_window when deciding in which window
the region should be highlighted. Consequently, the region remains
highlighted even when a completion buffer is also displayed.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 3766f0b5219..d06e5e1aecf 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -1582,8 +1582,8 @@ init_iterator (it, w, charpos, bytepos, row, base_face_id) | |||
| 1582 | /* Or show the region if we are in the mini-buffer and W is | 1582 | /* Or show the region if we are in the mini-buffer and W is |
| 1583 | the window the mini-buffer refers to. */ | 1583 | the window the mini-buffer refers to. */ |
| 1584 | || (MINI_WINDOW_P (XWINDOW (selected_window)) | 1584 | || (MINI_WINDOW_P (XWINDOW (selected_window)) |
| 1585 | && WINDOWP (Vminibuf_scroll_window) | 1585 | && WINDOWP (Vminibuf_selected_window) |
| 1586 | && w == XWINDOW (Vminibuf_scroll_window)))) | 1586 | && w == XWINDOW (Vminibuf_selected_window)))) |
| 1587 | { | 1587 | { |
| 1588 | int charpos = marker_position (current_buffer->mark); | 1588 | int charpos = marker_position (current_buffer->mark); |
| 1589 | it->region_beg_charpos = min (PT, charpos); | 1589 | it->region_beg_charpos = min (PT, charpos); |