SimpylFold icon indicating copy to clipboard operation
SimpylFold copied to clipboard

Auto close fold include current line after delete line

Open roachsinai opened this issue 3 years ago • 5 comments

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?

roachsinai avatar Apr 27 '21 15:04 roachsinai

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

Also, what is your foldlevel set to?

tmhedberg avatar Apr 27 '21 16:04 tmhedberg

@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 avatar Apr 28 '21 02:04 roachsinai

And I found a autocmd in :autocmd

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

roachsinai avatar Apr 28 '21 03:04 roachsinai

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

tmhedberg avatar Apr 28 '21 15:04 tmhedberg

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

roachsinai avatar Apr 29 '21 03:04 roachsinai