aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 0de76b0bde3..50f1e6752e4 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -4102,7 +4102,10 @@ using that one instead of current buffer's process."
4102 (with-current-buffer (process-buffer process) 4102 (with-current-buffer (process-buffer process)
4103 (cond ((or (null prompt) 4103 (cond ((or (null prompt)
4104 (and is-shell-buffer 4104 (and is-shell-buffer
4105 (< (point) (cdr prompt-boundaries)))) 4105 (< (point) (cdr prompt-boundaries)))
4106 (and (not is-shell-buffer)
4107 (string-match-p
4108 python-shell-prompt-pdb-regexp prompt)))
4106 #'ignore) 4109 #'ignore)
4107 ((or (not python-shell-completion-native-enable) 4110 ((or (not python-shell-completion-native-enable)
4108 ;; Even if native completion is enabled, for 4111 ;; Even if native completion is enabled, for