"Close gap" in Fill tool

I thought of this thread, which is also the filling function related to animation
Inverted Fill - Develop / Feature Requests - Krita Artists (krita-artists.org)