]> git.eshelyaron.com Git - emacs.git/commitdiff
python-shell-completion-at-point: respect simple-operator (Bug#37808)
authorAndrii Kolomoiets <andreyk.mad@gmail.com>
Fri, 18 Oct 2019 13:04:32 +0000 (16:04 +0300)
committerNoam Postavsky <npostavs@gmail.com>
Fri, 13 Dec 2019 12:47:14 +0000 (07:47 -0500)
* lisp/progmodes/python.el (python-shell-completion-at-point): Also
stop on simple-operator while parsing input.

lisp/progmodes/python.el

index b0d3174eabcdbaf685da49a5fa2ff70d4acecc6e..08ef471f6b074faf11d15ba84c5e569880f5f1e7 100644 (file)
@@ -3670,7 +3670,7 @@ using that one instead of current buffer's process."
           (save-excursion
             (if (not (re-search-backward
                       (python-rx
-                       (or whitespace open-paren close-paren string-delimiter))
+                       (or whitespace open-paren close-paren string-delimiter simple-operator))
                       line-start
                       t 1))
                 line-start