diff options
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c index acb4c5cfbdd..e0ea9beb211 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -4895,6 +4895,8 @@ window_scroll_pixel_based (window, n, whole, noerror) | |||
| 4895 | } | 4895 | } |
| 4896 | else if (noerror) | 4896 | else if (noerror) |
| 4897 | return; | 4897 | return; |
| 4898 | else if (n < 0) /* could happen with empty buffers */ | ||
| 4899 | Fsignal (Qbeginning_of_buffer, Qnil); | ||
| 4898 | else | 4900 | else |
| 4899 | Fsignal (Qend_of_buffer, Qnil); | 4901 | Fsignal (Qend_of_buffer, Qnil); |
| 4900 | } | 4902 | } |