Skip to content
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

Auto close fold include current line after delete line #123

Open
roachsinai opened this issue Apr 27, 2021 · 5 comments
Open

Auto close fold include current line after delete line #123

roachsinai opened this issue Apr 27, 2021 · 5 comments

Comments

@roachsinai
Copy link

Hi, @tmhedberg thanks for this pluginnn!

And sometimes when I in normal mode delete a line or paste from clipboard, the fold which current line belongs to will auto close. What's most wired is, if I undo and redo that operation, it didn't reproduced.

So wanna know isn't it just happen to me?

@tmhedberg
Copy link
Owner

Can you provide a small example of text that exhibits this behavior?

Also, what is your foldlevel set to?

@roachsinai
Copy link
Author

@tmhedberg thanks for your reply!

I not set foldlevel in vimrc.

And sorry it's hard to reproduce it. Same context but fold not close next time.

@roachsinai
Copy link
Author

And I found a autocmd in :autocmd

SimpylFold  TextChanged
    <buffer=1>
              call SimpylFold#Recache()

@tmhedberg
Copy link
Owner

Let me know if you discover a reproducible case. Otherwise, it will be difficult to help.

@roachsinai
Copy link
Author

Yeah, will post it here as soon as I find one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants