Skip to content

Commit

Permalink
Ensure folding indicators do not appear outside the module
Browse files Browse the repository at this point in the history
  • Loading branch information
galaunay committed Jan 12, 2020
1 parent a698cfd commit 32770c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion elpy.el
Original file line number Diff line number Diff line change
Expand Up @@ -3208,7 +3208,9 @@ display the current class and method instead."
:set (lambda (var val) ;
(set-default var val)
(dolist (buffer (buffer-list))
(when (with-current-buffer buffer elpy-mode)
(when (and (with-current-buffer buffer elpy-mode)
(member 'elpy-folding--mark-foldable-lines
after-change-functions))
(elpy-folding--mark-foldable-lines)))))

(defvar elpy-folding-docstring-regex "[uU]?[rR]?\"\"\""
Expand Down

0 comments on commit 32770c9

Please sign in to comment.