changeset 63037:e7db86688ce6

Add comment to line-move re. sit-for.
author Kim F. Storm <storm@cua.dk>
date Sun, 05 Jun 2005 17:19:55 +0000
parents 55298152ef7d
children ac1cd1222417
files lisp/simple.el
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/simple.el	Sun Jun 05 17:09:55 2005 +0000
+++ b/lisp/simple.el	Sun Jun 05 17:19:55 2005 +0000
@@ -3365,6 +3365,8 @@
 	  (set-window-vscroll nil 0)
 	  (when (line-move-1 arg noerror to-end)
 	    (when (not forward)
+	      ;; Update display before calling pos-visible-in-window-p,
+	      ;; because it depends on window-start being up-to-date.
 	      (sit-for 0)
 	      (if (and (setq part (nth 2 (pos-visible-in-window-p
 					  (line-beginning-position) nil t)))