-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SimplyFold has issues recalculating the fold when adding lines to the end of a fold #116
Comments
I'm not able to reproduce this by following your directions. The additional
line is correctly included in the fold for me. Does it still happen if you
disable all other plugins?
…On Tue, Jan 21, 2020 at 10:50 PM nabeel-ms ***@***.***> wrote:
Steps to reproduce:
- Create python file as follows
class A:
"""Class Docstring """
def __init__(self):
"""init docstring """
pass
def myprint(self):
"""Testing function docstring """
print('Printed myprint')
print('Printed myprint a second time')
- Then, save it as test.py
- Open the file again
- Go to the last line
- Add another line at the end of myprint
class A:
"""Class Docstring """
def __init__(self):
"""init docstring """
pass
def myprint(self):
"""Testing function docstring """
print('Printed myprint')
print('Printed myprint a second time')
print('another line')
- Now, the last line is excluded from the fold
- As an example, if you press zM, you get:
+-- 13 lines: class A: Class
Docstring--------------------------------------------
print('another line')
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#116?email_source=notifications&email_token=AACHCGLUO5JB6ADX32OJCUTQ67UCTA5CNFSM4KKAWDC2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IH3LX2A>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACHCGPQ4CT44JCRJXGG5DDQ67UCTANCNFSM4KKAWDCQ>
.
|
I can confirm this is occurring in my Vim setup exactly as nabeel-ms describes it. |
Please paste the output of What is the state of the existing folds in the file at the time that you add the additional line at the end? Are they open or closed? I'm still not seeing this behavior, so I'm trying to figure out what's different for me. It would still be helpful if you could try this with all plugins except for this one disabled. A lot of weird problems can be caused by the interaction between multiple plugins that weren't designed to work together, since Vim doesn't really isolate them. |
The output is as follows:
I have uninstalled all my plugins excluding YouCompleteMe. |
I've encountered the same issue. Thanks for the
I removed all my config and left only this plugin then I was able to replicate with a file like the following:
Then I added and an extra line:
Then press
|
Hi all - With
There is probably a tiny bit of lag especially with large files, but since it's only triggered upon saving (which takes a while anyway), it's quite difficult to notice. On a 1200-line file it takes me 100–200 ms to recalculate the folds and write the buffer. One could probably use |
Steps to reproduce:
zM
, you get:The text was updated successfully, but these errors were encountered: