diff options
-rw-r--r-- | lisp/simple.el | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index df5c655b3c9..fff374342cb 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -68,9 +68,12 @@ this function useful in editing binary files." (eq overwrite-mode 'overwrite-mode-binary)) (read-quoted-char) (read-char)))) - (if (eq overwrite-mode 'overwrite-mode-binary) - (delete-char arg)) - (insert-char char arg))) + (if (> arg 0) + (if (eq overwrite-mode 'overwrite-mode-binary) + (delete-char arg))) + (while (> arg 0) + (insert-and-inherit char) + (setq arg (1- arg))))) (defun delete-indentation (&optional arg) "Join this line to previous and fix up whitespace at join. |