I actually found a better way: see https://github.com/geany/geany-plugins/pull/481/commits/a0ef5fdb6103589fd9fe22721683e9e09c40640d and its message.
-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany-plugins/pull/481#issuecomment-243234645
