summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/comint.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/comint.el b/lisp/comint.el
index fe4376996c6..3da9fd1d8a9 100644
--- a/lisp/comint.el
+++ b/lisp/comint.el
@@ -1058,7 +1058,7 @@ than the logical beginning of line."
(replace-match new t t)
(message "History item: substituted"))))
(t
- (goto-char (match-end 0))))))))
+ (forward-char 1)))))))
(defun comint-magic-space (arg)