changeset 71286:1d2d52a04520

(window_scroll_pixel_based): Signal "Beginning of buffer" when scroll-down at the beginning of an empty buffer.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 09 Jun 2006 09:04:34 +0000
parents 6cfe63e5da14
children 28a35771bb1e
files src/window.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/window.c	Fri Jun 09 04:09:30 2006 +0000
+++ b/src/window.c	Fri Jun 09 09:04:34 2006 +0000
@@ -4895,6 +4895,8 @@
 	    }
 	  else if (noerror)
 	    return;
+	  else if (n < 0)	/* could happen with empty buffers */
+	    Fsignal (Qbeginning_of_buffer, Qnil);
 	  else
 	    Fsignal (Qend_of_buffer, Qnil);
 	}