python.el: better limit for looking-back calls

* lisp/progmodes/python.el (python-shell-accept-process-output):
Use last comint prompt start as limit for looking-back.
This commit is contained in:
Fabián Ezequiel Gallina 2015-05-11 00:03:08 -03:00
parent b47f3356fb
commit e35bf57271

View file

@ -2268,7 +2268,8 @@ banner and the initial prompt are received separately."
(while t
(when (not (accept-process-output process timeout))
(throw 'found nil))
(when (looking-back regexp (point-min))
(when (looking-back
regexp (car (python-util-comint-last-prompt)))
(throw 'found t))))))
(defun python-shell-comint-end-of-output-p (output)