diff options
author | Richard M. Stallman <rms@gnu.org> | 1993-05-12 20:32:32 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1993-05-12 20:32:32 +0000 |
commit | c64cc467751e1de930d75759087a5f6955ddecf4 (patch) | |
tree | aa3096ab44b6040e7298449aa486a9f7943c8268 /lisp | |
parent | d3f7c8c6e4985a7d2cf3c9fa0a0cc48b5328c796 (diff) | |
download | emacs-c64cc467751e1de930d75759087a5f6955ddecf4.tar.gz |
(comint-filter): Increment opoint only if after insertion point.
Diffstat (limited to 'lisp')
-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." (nchars (length string))) (widen) (goto-char (process-mark process)) - (setq opoint (+ opoint nchars)) + (if (<= (point) opoint) + (setq opoint (+ opoint nchars))) ;; Insert after old_begv, but before old_zv. (if (< (point) obeg) (setq obeg (+ obeg nchars))) |