Commit f9471190 authored by Fabián Ezequiel Gallina's avatar Fabián Ezequiel Gallina Committed by Fabián Ezequiel Gallina

Better indentation handling when inside parens.

parent 86f1889a
......@@ -670,9 +670,9 @@ START is the buffer position where the sexp starts."
(or (save-excursion
(forward-comment 1)
(looking-at (regexp-opt '(")" "]" "}")))
(forward-char 1)
(when (not (python-info-ppss-context 'paren))
(when (and (looking-at (regexp-opt '(")" "]" "}")))
(not (forward-char 1))
(not (python-info-ppss-context 'paren)))
(goto-char context-start)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment