aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-07-20 05:55:31 +0000
committerRichard M. Stallman1993-07-20 05:55:31 +0000
commitf5d7a8f2f81df6eb76c138f2d1dd4e6b59f75d67 (patch)
tree62b1effc3929e0e0173856296b2392e371e5f149
parent00aa7e1cdf96048081730e2fd597123a1e639be0 (diff)
downloademacs-f5d7a8f2f81df6eb76c138f2d1dd4e6b59f75d67.tar.gz
emacs-f5d7a8f2f81df6eb76c138f2d1dd4e6b59f75d67.zip
(reposition-window): Don't forward-char if eobp.
-rw-r--r--lisp/reposition.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/reposition.el b/lisp/reposition.el
index d981eefec5e..0dda524f079 100644
--- a/lisp/reposition.el
+++ b/lisp/reposition.el
@@ -70,7 +70,8 @@ first comment line visible (if point is in a comment)."
70 (repos-count-screen-lines-signed 70 (repos-count-screen-lines-signed
71 ;; the beginning of the preceding comment 71 ;; the beginning of the preceding comment
72 (save-excursion 72 (save-excursion
73 (forward-char 1) (end-of-defun -1) 73 (if (not (eobp)) (forward-char 1))
74 (end-of-defun -1)
74 ;; Skip whitespace, newlines, and form feeds. 75 ;; Skip whitespace, newlines, and form feeds.
75 (re-search-forward "[^\\s \n\014]") 76 (re-search-forward "[^\\s \n\014]")
76 (backward-char 1) 77 (backward-char 1)