You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bad text display for folded multi-line docstrings #560
the folded docstring text becomes docstring, rather than This is my.
This behavior is caused by lines 21-23 from autoload/pymode/folding.vim (added in commit fce811d), but simply removing them breaks docstrings like this:
"""
This is my docstring.
"""
which will instead show an empty fold text.
A simple fix I've found is to replace line 21 with if getline(fs) =~ s:doc_end_regex, since this handles the case where the first line is blank - but that does assume the fold won't start with a single-line docstring, and I'm not sufficiently acquainted with the folding stuff to be sure that this won't ever be the case.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Activity
mgeier commentedon Oct 31, 2015
This seems to be working now in the current master.
mgeier commentedon Oct 31, 2015
I guess this was fixed in #533.
stale commentedon Feb 13, 2018
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
stale commentedon Mar 6, 2018
Closed due to inactivity.