aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrii Kolomoiets2019-10-18 16:04:32 +0300
committerNoam Postavsky2019-12-13 07:47:14 -0500
commit51d3c95147efa80fd3e09c90705439517e8fb6ca (patch)
tree45acb9385fce2c0da15bb56decf6e464ba62394e
parent82b4e48c590cf2c0448a751e641b0ee7a6a02438 (diff)
downloademacs-51d3c95147efa80fd3e09c90705439517e8fb6ca.tar.gz
emacs-51d3c95147efa80fd3e09c90705439517e8fb6ca.zip
python-shell-completion-at-point: respect simple-operator (Bug#37808)
* lisp/progmodes/python.el (python-shell-completion-at-point): Also stop on simple-operator while parsing input.
-rw-r--r--lisp/progmodes/python.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index b0d3174eabc..08ef471f6b0 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -3670,7 +3670,7 @@ using that one instead of current buffer's process."
3670 (save-excursion 3670 (save-excursion
3671 (if (not (re-search-backward 3671 (if (not (re-search-backward
3672 (python-rx 3672 (python-rx
3673 (or whitespace open-paren close-paren string-delimiter)) 3673 (or whitespace open-paren close-paren string-delimiter simple-operator))
3674 line-start 3674 line-start
3675 t 1)) 3675 t 1))
3676 line-start 3676 line-start