snippets: invalidate snippet region on text insertion

This allows us to properly redraw the background when inserting text.