summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1993-12-31 06:45:33 +0000
committerRichard M. Stallman <rms@gnu.org>1993-12-31 06:45:33 +0000
commitaa648601df886d7336e064caf6d7f72b05244b93 (patch)
treeeecf1adb9e5b68a124a1baa4e9ed480acde84e85 /lisp
parent385f7c8e56b9dc9788b912a38da5e9b899be58d4 (diff)
downloademacs-aa648601df886d7336e064caf6d7f72b05244b93.tar.gz
(open-line): Properly put fill-prefix on each line.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/simple.el11
1 files changed, 6 insertions, 5 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index 2a471f61f9e..8eb0ace9d46 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -44,11 +44,12 @@ With arg N, insert N newlines."
(if (and buffer-undo-list (not (eq buffer-undo-list t)))
(setq buffer-undo-list (cons (point) buffer-undo-list)))
(forward-char -1)))
- (while (> arg 0)
- (save-excursion
- (insert ?\n)
- (if do-fill-prefix (insert fill-prefix)))
- (setq arg (1- arg)))
+ (save-excursion
+ (while (> arg 0)
+ (if do-fill-prefix (insert fill-prefix))
+ (insert ?\n)
+ (setq arg (1- arg))))
+ (end-of-line)
(if flag (forward-char 1))))
(defun split-line ()