diff options
| author | Kim F. Storm | 2005-07-13 09:36:12 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2005-07-13 09:36:12 +0000 |
| commit | e3ea3a51e67a51bfcd1b4f7f53ded25fd3a0507a (patch) | |
| tree | 9b6166f72c92d70ed7b4e4f872522bf52a1b51da | |
| parent | 098e1273d8ec254f229923b394d7fcbb040f3d93 (diff) | |
| download | emacs-e3ea3a51e67a51bfcd1b4f7f53ded25fd3a0507a.tar.gz emacs-e3ea3a51e67a51bfcd1b4f7f53ded25fd3a0507a.zip | |
(cursor_row_fully_visible_p): Allow partially visible
row in minibuffer windows.
(try_window): Don't check margins in minibuffer windows.
| -rw-r--r-- | src/xdisp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 5ed987cf84d..adb19b28ec4 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -11294,7 +11294,7 @@ cursor_row_fully_visible_p (w, force_p, current_matrix_p) | |||
| 11294 | window_height = window_box_height (w); | 11294 | window_height = window_box_height (w); |
| 11295 | if (row->height >= window_height) | 11295 | if (row->height >= window_height) |
| 11296 | { | 11296 | { |
| 11297 | if (!force_p || w->vscroll) | 11297 | if (!force_p || MINI_WINDOW_P (w) || w->vscroll) |
| 11298 | return 1; | 11298 | return 1; |
| 11299 | } | 11299 | } |
| 11300 | return 0; | 11300 | return 0; |
| @@ -12729,7 +12729,8 @@ try_window (window, pos, check_margins) | |||
| 12729 | } | 12729 | } |
| 12730 | 12730 | ||
| 12731 | /* Don't let the cursor end in the scroll margins. */ | 12731 | /* Don't let the cursor end in the scroll margins. */ |
| 12732 | if (check_margins) | 12732 | if (check_margins |
| 12733 | && !MINI_WINDOW_P (w)) | ||
| 12733 | { | 12734 | { |
| 12734 | int this_scroll_margin, cursor_height; | 12735 | int this_scroll_margin, cursor_height; |
| 12735 | 12736 | ||