snippets: use gtk_text_iter_backward_find_char()

This clean's up our traversal backwards to find a stop character.
Much simpler to follow. It also fixes a bug where if inserting a
snippet like `gpl' on the second line, it would destructively destroy
the first line.