colinta/SublimeStringEncode — comment on commit 0c9f4092e3e9168960e8e0ccbca4a6c9543d0592
File: string_encode.py line 10
By colinta:

Something that comes up a lot is that I need to perform a change in reverse order, so that `region.a` and `region.b` point to the correct locations. So I start with that snippet a lot.

Also, `self.view.sel()` points to the same object even when you add and remove regions to it. Not the case here, but again that's why I often use that bit of code.