]> git.eshelyaron.com Git - emacs.git/commitdiff
python.el: better limit for looking-back calls
authorFabián Ezequiel Gallina <fgallina@gnu.org>
Mon, 11 May 2015 03:03:08 +0000 (00:03 -0300)
committerFabián Ezequiel Gallina <fgallina@gnu.org>
Mon, 11 May 2015 03:03:08 +0000 (00:03 -0300)
* lisp/progmodes/python.el (python-shell-accept-process-output):
Use last comint prompt start as limit for looking-back.

lisp/progmodes/python.el

index 2e7410ac833296481a5236ba3633dd3f51a10987..4b0a028faa3aa3d3e533a4391d50f4338e965285 100644 (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)