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

Fixed indentation inside parens when comments are around

parent bbac1eb8
......@@ -568,7 +568,12 @@ START is the buffer position where the sexp starts."
(save-excursion
(goto-char context-start)
(forward-char)
(if (looking-at "[[:space:]]*$")
(save-restriction
(narrow-to-region
(line-beginning-position)
(line-end-position))
(forward-comment 1))
(if (looking-at "$")
(+ (current-indentation) python-indent-offset)
(forward-comment 1)
(current-column)))
......
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