Commit 171e9b6e authored by Chong Yidong's avatar Chong Yidong
Browse files

Minor fix for next-single-char-property-change usage.

* lisp/comint.el (comint-next-prompt): next-single-char-property-change
and prev-single-char-property-change never return nil.

Fixes: debbugs:8657
parent 1449fa1d
2012-02-06 Chong Yidong <cyd@gnu.org>
* comint.el (comint-next-prompt): next-single-char-property-change
and prev-single-char-property-change never return nil (Bug#8657).
* custom.el (defcustom): Doc fix (Bug#9711).
2012-02-05 Chong Yidong <cyd@gnu.org>
......
......@@ -2513,7 +2513,7 @@ text matching `comint-prompt-regexp'."
(if (> n 0)
(next-single-char-property-change pos 'field)
(previous-single-char-property-change pos 'field)))
(cond ((or (null pos) (= pos prev-pos))
(cond ((= pos prev-pos)
;; Ran off the end of the buffer.
(when (> n 0)
;; There's always an input field at the end of the
......
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