diff options
| -rw-r--r-- | lisp/reposition.el | 3 |
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) |