changeset 9217:1ed75812c134

(fill-region, fill-region-as-paragraph): Fix previous change.
author Richard M. Stallman <rms@gnu.org>
date Sun, 02 Oct 1994 02:23:21 +0000
parents 8aae61dee4df
children db4473eb2265
files lisp/textmodes/fill.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/fill.el	Sun Oct 02 01:49:29 1994 +0000
+++ b/lisp/textmodes/fill.el	Sun Oct 02 02:23:21 1994 +0000
@@ -100,7 +100,7 @@
       (goto-char (max from to))
       ;; If specified region ends before a newline,
       ;; include that newline.
-      (if (and (eolp) (not (eobp)))
+      (if (and (eolp) (not (eobp)) (not (bolp)))
 	  (forward-char 1))
       (narrow-to-region (min from to) (point))
       (goto-char (point-min))
@@ -264,7 +264,7 @@
     (goto-char (max from to))
     ;; If specified region ends before a newline,
     ;; include that newline.
-    (if (and (eolp) (not (eobp)))
+    (if (and (eolp) (not (eobp)) (not (bolp)))
 	(forward-char 1))
     (narrow-to-region (min from to) (point))
     (goto-char (point-min))