From 51d3c95147efa80fd3e09c90705439517e8fb6ca Mon Sep 17 00:00:00 2001 From: Andrii Kolomoiets Date: Fri, 18 Oct 2019 16:04:32 +0300 Subject: [PATCH] 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. --- lisp/progmodes/python.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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." (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 -- 2.39.2