aboutsummaryrefslogtreecommitdiffstats
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 dc3cdd9fa7a..b91b82adb21 100644
--- a/lisp/comint.el
+++ b/lisp/comint.el
@@ -2152,7 +2152,7 @@ If `comint-use-prompt-regexp' is non-nil, then return
2152the current line with any initial string matching the regexp 2152the current line with any initial string matching the regexp
2153`comint-prompt-regexp' removed." 2153`comint-prompt-regexp' removed."
2154 (let (bof) 2154 (let (bof)
2155 (if (and comint-use-prompt-regexp 2155 (if (and (not comint-use-prompt-regexp)
2156 ;; Make sure we're in an input rather than output field. 2156 ;; Make sure we're in an input rather than output field.
2157 (null (get-char-property (setq bof (field-beginning)) 'field))) 2157 (null (get-char-property (setq bof (field-beginning)) 'field)))
2158 (field-string-no-properties bof) 2158 (field-string-no-properties bof)