Commit 81a0a268 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

* comint.el (comint-get-old-input-default): Fix thinko in last change.

Fixes: debbugs:9865
parent d53e1747
......@@ -2152,7 +2152,7 @@ If `comint-use-prompt-regexp' is non-nil, then return
the current line with any initial string matching the regexp
`comint-prompt-regexp' removed."
(let (bof)
(if (and comint-use-prompt-regexp
(if (and (not comint-use-prompt-regexp)
;; Make sure we're in an input rather than output field.
(null (get-char-property (setq bof (field-beginning)) 'field)))
(field-string-no-properties bof)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment