- Notifications
You must be signed in to change notification settings - Fork2.5k
config: properly delete or rename section containing multivars#6723
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Renaming a section or deleting its content removes each entry aftercopying it in its new place if needed. However, since each entrymay be part of a multivar, deletion must only remove the exact entrythat has just been copied.
Thanks@samueltardieu - this looks great on first glance, but I'd like to spend a few more minutes to give this a deeper review. Great first PR, I appreciate this. |
Hi@ethomson. Anything I need to do on my side? |
We can just append the escaped regex to the value buffer, we don't needcreate a new value buffer and then append _that_.
Hi@samueltardieu - sorry about the delay. This is a great fix. I took one more look and realized that we should be able to avoid the copy when constructing the escaped value. I think that we don't need to create the intermediate I pushed up a commit to your branch to do this - would you mind 👀 just to make sure that I didn't make any logical errors? Thanks again! 🙏 |
It is much better indeed. |
Thanks for the fix! |
Uh oh!
There was an error while loading.Please reload this page.
Renaming a config section or deleting its content removes each entry after copying it in its new place if needed. However, since each entry may be part of a multivar, deletion must only remove the exact entry that has just been copied.
Fix#6722