diff options
| author | Richard M. Stallman | 1993-05-12 20:32:32 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-05-12 20:32:32 +0000 |
| commit | c64cc467751e1de930d75759087a5f6955ddecf4 (patch) | |
| tree | aa3096ab44b6040e7298449aa486a9f7943c8268 | |
| parent | d3f7c8c6e4985a7d2cf3c9fa0a0cc48b5328c796 (diff) | |
| download | emacs-c64cc467751e1de930d75759087a5f6955ddecf4.tar.gz emacs-c64cc467751e1de930d75759087a5f6955ddecf4.zip | |
(comint-filter): Increment opoint only if after insertion point.
| -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))) |