diff options
| -rw-r--r-- | lisp/comint.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/comint.el b/lisp/comint.el index 5c0d27ccb89..0d49cba5590 100644 --- a/lisp/comint.el +++ b/lisp/comint.el | |||
| @@ -662,7 +662,8 @@ Similarly for Soar, Scheme, etc." | |||
| 662 | (nchars (length string))) | 662 | (nchars (length string))) |
| 663 | (widen) | 663 | (widen) |
| 664 | (goto-char (process-mark process)) | 664 | (goto-char (process-mark process)) |
| 665 | (setq opoint (+ opoint nchars)) | 665 | (if (<= (point) opoint) |
| 666 | (setq opoint (+ opoint nchars))) | ||
| 666 | ;; Insert after old_begv, but before old_zv. | 667 | ;; Insert after old_begv, but before old_zv. |
| 667 | (if (< (point) obeg) | 668 | (if (< (point) obeg) |
| 668 | (setq obeg (+ obeg nchars))) | 669 | (setq obeg (+ obeg nchars))) |