diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/window.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c index bee5e9aae98..f8cdd1a207a 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -617,10 +617,19 @@ unshow_buffer (w) | |||
| 617 | if (XBUFFER (buf) != XMARKER (w->pointm)->buffer) | 617 | if (XBUFFER (buf) != XMARKER (w->pointm)->buffer) |
| 618 | abort (); | 618 | abort (); |
| 619 | 619 | ||
| 620 | #if 0 | ||
| 620 | if (w == XWINDOW (selected_window) | 621 | if (w == XWINDOW (selected_window) |
| 621 | || ! EQ (buf, XWINDOW (selected_window)->buffer)) | 622 | || ! EQ (buf, XWINDOW (selected_window)->buffer)) |
| 622 | /* Do this except when the selected window's buffer | 623 | /* Do this except when the selected window's buffer |
| 623 | is being removed from some other window. */ | 624 | is being removed from some other window. */ |
| 625 | #endif | ||
| 626 | /* last_window_start records the start position that this buffer | ||
| 627 | had in the last window to be disconnected from it. | ||
| 628 | Now that this statement is unconditional, | ||
| 629 | it is possible for the buffer to be displayed in the | ||
| 630 | selected window, while last_window_start reflects another | ||
| 631 | window which was recently showing the same buffer. | ||
| 632 | Some people might say that might be a good thing. Let's see. */ | ||
| 624 | XBUFFER (buf)->last_window_start = marker_position (w->start); | 633 | XBUFFER (buf)->last_window_start = marker_position (w->start); |
| 625 | 634 | ||
| 626 | /* Point in the selected window's buffer | 635 | /* Point in the selected window's buffer |